home *** CD-ROM | disk | FTP | other *** search
MacBinary | 1990-11-15 | 64.8 KB | [TEXT/MPS ] |
open in:
MacOS 8.1
|
Win98
|
DOS
browse contents |
view JSON data
|
view as text
This file was processed as: MacBinary
(archive/macBinary).
Confidence | Program | Detection | Match Type | Support
|
---|
10%
| dexvert
| MacBinary (archive/macBinary)
| fallback
| Supported |
10%
| dexvert
| Jesper Olsen Module (music/jesperOlsen)
| magic
| Supported |
1%
| dexvert
| Text File (text/txt)
| fallback
| Supported |
100%
| file
| TTComp archive data, binary, 1K dictionary
| default (weak)
| |
99%
| file
| MacBinary II, Thu Nov 15 09:39:11 1990, modified Thu Nov 15 09:39:11 1990, creator 'MPS ', type ASCII, 65636 bytes "tm.h" , at 0x100e4 428 bytes resource
| default (weak)
| |
98%
| file
| data
| default
| |
49%
| TrID
| Macintosh plain text (MacBinary)
| default
| |
33%
| TrID
| TTComp archive compressed (bin-1K)
| default (weak)
| |
16%
| TrID
| MacBinary 2
| default (weak)
| |
0%
| TrID
| Sybase iAnywhere database files
| default (weak)
| |
100%
| siegfried
| fmt/1762 MacBinary (II)
| default
| |
100%
| lsar
| MacBinary
| default
|
|
id metadata |
---|
key | value |
---|
macFileType | [TEXT] |
macFileCreator | [MPS ] |
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 04 74 6d 2e 68 00 00 | 00 00 00 00 00 00 00 00 |..tm.h..|........|
|00000010| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 54 45 58 54 4d 50 53 | 20 00 00 00 00 00 00 00 |.TEXTMPS| .......|
|00000050| 00 00 00 00 01 00 64 00 | 00 01 ac a3 68 59 0f a3 |......d.|....hY..|
|00000060| 68 59 0f 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |hY......|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 9e 50 00 00 |........|.....P..|
|00000080| 2f 2a 20 44 65 66 69 6e | 69 74 69 6f 6e 73 20 6f |/* Defin|itions o|
|00000090| 66 20 74 61 72 67 65 74 | 20 6d 61 63 68 69 6e 65 |f target| machine|
|000000a0| 20 66 6f 72 20 47 4e 55 | 20 63 6f 6d 70 69 6c 65 | for GNU| compile|
|000000b0| 72 2e 20 20 46 6f 72 20 | 4d 61 63 69 6e 74 6f 73 |r. For |Macintos|
|000000c0| 68 20 4d 50 57 2c 0d 20 | 20 20 65 78 74 65 6e 73 |h MPW,. | extens|
|000000d0| 69 76 65 6c 79 20 6d 6f | 64 69 66 69 65 64 20 66 |ively mo|dified f|
|000000e0| 72 6f 6d 20 74 68 65 20 | 67 65 6e 65 72 69 63 20 |rom the |generic |
|000000f0| 36 38 6b 20 74 6d 2e 68 | 2e 0d 20 20 20 43 6f 70 |68k tm.h|.. Cop|
|00000100| 79 72 69 67 68 74 20 28 | 43 29 20 31 39 38 37 2c |yright (|C) 1987,|
|00000110| 20 31 39 38 38 20 46 72 | 65 65 20 53 6f 66 74 77 | 1988 Fr|ee Softw|
|00000120| 61 72 65 20 46 6f 75 6e | 64 61 74 69 6f 6e 2c 20 |are Foun|dation, |
|00000130| 49 6e 63 2e 0d 20 20 20 | 43 6f 70 79 72 69 67 68 |Inc.. |Copyrigh|
|00000140| 74 20 28 43 29 20 31 39 | 38 39 2c 20 31 39 39 30 |t (C) 19|89, 1990|
|00000150| 20 41 70 70 6c 65 20 43 | 6f 6d 70 75 74 65 72 2c | Apple C|omputer,|
|00000160| 20 49 6e 63 2e 0d 0d 54 | 68 69 73 20 66 69 6c 65 | Inc...T|his file|
|00000170| 20 69 73 20 70 61 72 74 | 20 6f 66 20 47 4e 55 20 | is part| of GNU |
|00000180| 43 43 2e 0d 0d 47 4e 55 | 20 43 43 20 69 73 20 66 |CC...GNU| CC is f|
|00000190| 72 65 65 20 73 6f 66 74 | 77 61 72 65 3b 20 79 6f |ree soft|ware; yo|
|000001a0| 75 20 63 61 6e 20 72 65 | 64 69 73 74 72 69 62 75 |u can re|distribu|
|000001b0| 74 65 20 69 74 20 61 6e | 64 2f 6f 72 20 6d 6f 64 |te it an|d/or mod|
|000001c0| 69 66 79 0d 69 74 20 75 | 6e 64 65 72 20 74 68 65 |ify.it u|nder the|
|000001d0| 20 74 65 72 6d 73 20 6f | 66 20 74 68 65 20 47 4e | terms o|f the GN|
|000001e0| 55 20 47 65 6e 65 72 61 | 6c 20 50 75 62 6c 69 63 |U Genera|l Public|
|000001f0| 20 4c 69 63 65 6e 73 65 | 20 61 73 20 70 75 62 6c | License| as publ|
|00000200| 69 73 68 65 64 20 62 79 | 0d 74 68 65 20 46 72 65 |ished by|.the Fre|
|00000210| 65 20 53 6f 66 74 77 61 | 72 65 20 46 6f 75 6e 64 |e Softwa|re Found|
|00000220| 61 74 69 6f 6e 3b 20 65 | 69 74 68 65 72 20 76 65 |ation; e|ither ve|
|00000230| 72 73 69 6f 6e 20 31 2c | 20 6f 72 20 28 61 74 20 |rsion 1,| or (at |
|00000240| 79 6f 75 72 20 6f 70 74 | 69 6f 6e 29 0d 61 6e 79 |your opt|ion).any|
|00000250| 20 6c 61 74 65 72 20 76 | 65 72 73 69 6f 6e 2e 0d | later v|ersion..|
|00000260| 0d 47 4e 55 20 43 43 20 | 69 73 20 64 69 73 74 72 |.GNU CC |is distr|
|00000270| 69 62 75 74 65 64 20 69 | 6e 20 74 68 65 20 68 6f |ibuted i|n the ho|
|00000280| 70 65 20 74 68 61 74 20 | 69 74 20 77 69 6c 6c 20 |pe that |it will |
|00000290| 62 65 20 75 73 65 66 75 | 6c 2c 0d 62 75 74 20 57 |be usefu|l,.but W|
|000002a0| 49 54 48 4f 55 54 20 41 | 4e 59 20 57 41 52 52 41 |ITHOUT A|NY WARRA|
|000002b0| 4e 54 59 3b 20 77 69 74 | 68 6f 75 74 20 65 76 65 |NTY; wit|hout eve|
|000002c0| 6e 20 74 68 65 20 69 6d | 70 6c 69 65 64 20 77 61 |n the im|plied wa|
|000002d0| 72 72 61 6e 74 79 20 6f | 66 0d 4d 45 52 43 48 41 |rranty o|f.MERCHA|
|000002e0| 4e 54 41 42 49 4c 49 54 | 59 20 6f 72 20 46 49 54 |NTABILIT|Y or FIT|
|000002f0| 4e 45 53 53 20 46 4f 52 | 20 41 20 50 41 52 54 49 |NESS FOR| A PARTI|
|00000300| 43 55 4c 41 52 20 50 55 | 52 50 4f 53 45 2e 20 20 |CULAR PU|RPOSE. |
|00000310| 53 65 65 20 74 68 65 0d | 47 4e 55 20 47 65 6e 65 |See the.|GNU Gene|
|00000320| 72 61 6c 20 50 75 62 6c | 69 63 20 4c 69 63 65 6e |ral Publ|ic Licen|
|00000330| 73 65 20 66 6f 72 20 6d | 6f 72 65 20 64 65 74 61 |se for m|ore deta|
|00000340| 69 6c 73 2e 0d 0d 59 6f | 75 20 73 68 6f 75 6c 64 |ils...Yo|u should|
|00000350| 20 68 61 76 65 20 72 65 | 63 65 69 76 65 64 20 61 | have re|ceived a|
|00000360| 20 63 6f 70 79 20 6f 66 | 20 74 68 65 20 47 4e 55 | copy of| the GNU|
|00000370| 20 47 65 6e 65 72 61 6c | 20 50 75 62 6c 69 63 20 | General| Public |
|00000380| 4c 69 63 65 6e 73 65 0d | 61 6c 6f 6e 67 20 77 69 |License.|along wi|
|00000390| 74 68 20 47 4e 55 20 43 | 43 3b 20 73 65 65 20 74 |th GNU C|C; see t|
|000003a0| 68 65 20 66 69 6c 65 20 | 43 4f 50 59 49 4e 47 2e |he file |COPYING.|
|000003b0| 20 20 49 66 20 6e 6f 74 | 2c 20 77 72 69 74 65 20 | If not|, write |
|000003c0| 74 6f 0d 74 68 65 20 46 | 72 65 65 20 53 6f 66 74 |to.the F|ree Soft|
|000003d0| 77 61 72 65 20 46 6f 75 | 6e 64 61 74 69 6f 6e 2c |ware Fou|ndation,|
|000003e0| 20 36 37 35 20 4d 61 73 | 73 20 41 76 65 2c 20 43 | 675 Mas|s Ave, C|
|000003f0| 61 6d 62 72 69 64 67 65 | 2c 20 4d 41 20 30 32 31 |ambridge|, MA 021|
|00000400| 33 39 2c 20 55 53 41 2e | 20 20 2a 2f 0d 0d 2f 2a |39, USA.| */../*|
|00000410| 20 54 68 69 73 20 63 6f | 6d 6d 65 6e 74 20 69 73 | This co|mment is|
|00000420| 20 68 65 72 65 20 74 6f | 20 73 65 65 20 69 66 20 | here to| see if |
|00000430| 69 74 20 77 69 6c 6c 20 | 6b 65 65 70 20 53 75 6e |it will |keep Sun|
|00000440| 27 73 20 63 70 70 20 66 | 72 6f 6d 20 64 79 69 6e |'s cpp f|rom dyin|
|00000450| 67 2e 20 20 2a 2f 0d 0d | 2f 2a 20 54 68 65 73 65 |g. */..|/* These|
|00000460| 20 61 63 74 75 61 6c 6c | 79 20 6f 6e 6c 79 20 61 | actuall|y only a|
|00000470| 66 66 65 63 74 20 74 68 | 65 20 22 67 63 63 22 20 |ffect th|e "gcc" |
|00000480| 70 72 6f 67 72 61 6d 20 | 69 6e 20 55 6e 69 78 2c |program |in Unix,|
|00000490| 20 61 72 65 20 75 6e 75 | 73 65 64 20 69 6e 0d 20 | are unu|sed in. |
|000004a0| 20 20 74 68 65 20 4d 50 | 57 20 77 6f 72 6c 64 2e | the MP|W world.|
|000004b0| 20 2a 2f 0d 0d 23 64 65 | 66 69 6e 65 20 43 50 50 | */..#de|fine CPP|
|000004c0| 5f 53 50 45 43 20 22 25 | 7b 6d 36 38 38 38 31 3a |_SPEC "%|{m68881:|
|000004d0| 2d 44 6d 63 36 38 38 38 | 31 7d 25 7b 6d 36 38 30 |-Dmc6888|1}%{m680|
|000004e0| 32 30 3a 2d 44 6d 63 36 | 38 30 32 30 7d 22 0d 0d |20:-Dmc6|8020}"..|
|000004f0| 23 64 65 66 69 6e 65 20 | 43 43 31 5f 53 50 45 43 |#define |CC1_SPEC|
|00000500| 20 22 25 7b 73 2a 7d 22 | 0d 0d 2f 2a 20 54 68 69 | "%{s*}"|../* Thi|
|00000510| 73 20 69 73 20 74 72 75 | 65 20 77 68 65 6e 20 63 |s is tru|e when c|
|00000520| 6f 64 65 20 67 65 6e 20 | 63 61 6e 20 74 72 65 61 |ode gen |can trea|
|00000530| 74 20 73 79 6d 62 6f 6c | 2f 6c 61 62 65 6c 20 72 |t symbol|/label r|
|00000540| 65 66 73 20 61 73 20 63 | 6f 6e 73 74 61 6e 74 73 |efs as c|onstants|
|00000550| 2e 20 2a 2f 0d 0d 23 64 | 65 66 69 6e 65 20 53 59 |. */..#d|efine SY|
|00000560| 4d 42 4f 4c 53 5f 41 52 | 45 5f 43 4f 4e 53 54 41 |MBOLS_AR|E_CONSTA|
|00000570| 4e 54 53 20 31 0d 0d 2f | 2a 20 44 65 66 69 6e 65 |NTS 1../|* Define|
|00000580| 20 74 68 69 73 20 77 68 | 65 6e 20 6c 61 62 65 6c | this wh|en label|
|00000590| 73 2f 73 79 6d 62 6f 6c | 73 20 68 61 76 65 20 74 |s/symbol|s have t|
|000005a0| 6f 20 62 65 20 65 78 70 | 6c 69 63 69 74 6c 79 20 |o be exp|licitly |
|000005b0| 69 6d 70 6f 72 74 65 64 | 20 69 6e 74 6f 0d 20 20 |imported| into. |
|000005c0| 20 61 20 6d 6f 64 75 6c | 65 2e 20 2a 2f 0d 0d 23 | a modul|e. */..#|
|000005d0| 64 65 66 69 6e 65 20 49 | 4d 50 4f 52 54 5f 4e 41 |define I|MPORT_NA|
|000005e0| 4d 45 53 0d 0d 2f 2a 20 | 44 65 66 69 6e 65 20 74 |MES../* |Define t|
|000005f0| 68 69 73 20 77 68 65 6e | 20 63 6f 64 65 20 6c 61 |his when| code la|
|00000600| 62 65 6c 73 20 61 6e 64 | 20 64 61 74 61 20 6c 61 |bels and| data la|
|00000610| 62 65 6c 73 20 6e 65 65 | 64 20 74 6f 20 62 65 20 |bels nee|d to be |
|00000620| 74 72 65 61 74 65 64 0d | 20 20 20 64 69 66 66 65 |treated.| diffe|
|00000630| 72 65 6e 74 6c 79 20 69 | 6e 20 73 6f 6d 65 20 77 |rently i|n some w|
|00000640| 61 79 2e 20 2a 2f 0d 0d | 23 64 65 66 69 6e 65 20 |ay. */..|#define |
|00000650| 4d 41 52 4b 5f 4c 41 42 | 45 4c 5f 53 45 43 54 49 |MARK_LAB|EL_SECTI|
|00000660| 4f 4e 0d 0d 2f 2a 20 4e | 61 6d 65 73 20 74 6f 20 |ON../* N|ames to |
|00000670| 70 72 65 64 65 66 69 6e | 65 20 69 6e 20 74 68 65 |predefin|e in the|
|00000680| 20 70 72 65 70 72 6f 63 | 65 73 73 6f 72 20 66 6f | preproc|essor fo|
|00000690| 72 20 74 68 69 73 20 74 | 61 72 67 65 74 20 6d 61 |r this t|arget ma|
|000006a0| 63 68 69 6e 65 2e 20 20 | 2a 2f 0d 2f 2a 20 4e 6f |chine. |*/./* No|
|000006b0| 74 65 20 74 68 61 74 20 | 74 68 69 73 20 69 73 20 |te that |this is |
|000006c0| 65 78 61 63 74 6c 79 20 | 4d 50 57 27 73 20 73 65 |exactly |MPW's se|
|000006d0| 74 2c 20 70 6c 75 73 20 | 73 6f 6d 65 74 68 69 6e |t, plus |somethin|
|000006e0| 67 20 74 6f 20 64 69 73 | 74 69 6e 67 75 69 73 68 |g to dis|tinguish|
|000006f0| 20 2a 2f 0d 2f 2a 20 66 | 72 6f 6d 20 22 72 65 67 | */./* f|rom "reg|
|00000700| 75 6c 61 72 22 20 4d 50 | 57 2e 20 2a 2f 0d 0d 23 |ular" MP|W. */..#|
|00000710| 64 65 66 69 6e 65 20 43 | 50 50 5f 50 52 45 44 45 |define C|PP_PREDE|
|00000720| 46 49 4e 45 53 20 5c 0d | 20 20 22 2d 44 4d 43 36 |FINES \.| "-DMC6|
|00000730| 38 30 30 30 20 2d 44 6d | 63 36 38 30 30 30 20 2d |8000 -Dm|c68000 -|
|00000740| 44 6d 36 38 6b 20 2d 44 | 6d 61 63 69 6e 74 6f 73 |Dm68k -D|macintos|
|00000750| 68 20 2d 44 61 70 70 6c | 65 63 20 2d 44 6d 70 77 |h -Dappl|ec -Dmpw|
|00000760| 67 63 63 22 0d 0d 2f 2a | 20 53 6f 20 2a 6c 69 62 |gcc"../*| So *lib|
|00000770| 72 61 72 79 20 63 61 6c | 6c 20 67 65 6e 65 72 61 |rary cal|l genera|
|00000780| 74 69 6f 6e 2a 20 75 73 | 65 73 20 6d 65 6d 63 70 |tion* us|es memcp|
|00000790| 79 20 69 6e 73 74 65 61 | 64 20 6f 66 20 62 63 6f |y instea|d of bco|
|000007a0| 70 79 2c 20 65 74 63 2e | 20 2a 2f 0d 0d 23 64 65 |py, etc.| */..#de|
|000007b0| 66 69 6e 65 20 54 41 52 | 47 45 54 5f 4d 45 4d 5f |fine TAR|GET_MEM_|
|000007c0| 46 55 4e 43 54 49 4f 4e | 53 0d 0d 2f 2a 20 50 72 |FUNCTION|S../* Pr|
|000007d0| 69 6e 74 20 73 75 62 73 | 69 64 69 61 72 79 20 69 |int subs|idiary i|
|000007e0| 6e 66 6f 72 6d 61 74 69 | 6f 6e 20 6f 6e 20 74 68 |nformati|on on th|
|000007f0| 65 20 63 6f 6d 70 69 6c | 65 72 20 76 65 72 73 69 |e compil|er versi|
|00000800| 6f 6e 20 69 6e 20 75 73 | 65 2e 20 20 2a 2f 0d 23 |on in us|e. */.#|
|00000810| 64 65 66 69 6e 65 20 54 | 41 52 47 45 54 5f 56 45 |define T|ARGET_VE|
|00000820| 52 53 49 4f 4e 20 66 70 | 72 69 6e 74 66 20 28 73 |RSION fp|rintf (s|
|00000830| 74 64 65 72 72 2c 20 22 | 20 28 36 38 30 78 30 2c |tderr, "| (680x0,|
|00000840| 20 4d 50 57 20 41 73 6d | 20 73 79 6e 74 61 78 29 | MPW Asm| syntax)|
|00000850| 22 29 3b 0d 0d 2f 2a 20 | 44 65 63 6c 61 72 65 20 |");../* |Declare |
|00000860| 4d 61 63 2d 73 70 65 63 | 69 66 69 63 20 67 6c 6f |Mac-spec|ific glo|
|00000870| 62 61 6c 73 20 75 73 65 | 64 20 69 6e 20 74 68 65 |bals use|d in the|
|00000880| 20 63 6f 6d 70 69 6c 65 | 72 2e 20 2a 2f 0d 65 78 | compile|r. */.ex|
|00000890| 74 65 72 6e 20 63 68 61 | 72 20 2a 73 65 67 6d 65 |tern cha|r *segme|
|000008a0| 6e 74 5f 6e 61 6d 65 3b | 0d 65 78 74 65 72 6e 20 |nt_name;|.extern |
|000008b0| 69 6e 74 20 67 65 6e 65 | 72 61 74 65 5f 74 72 61 |int gene|rate_tra|
|000008c0| 63 65 5f 63 61 6c 6c 73 | 3b 0d 65 78 74 65 72 6e |ce_calls|;.extern|
|000008d0| 20 69 6e 74 20 69 67 6e | 6f 72 65 5f 74 72 61 63 | int ign|ore_trac|
|000008e0| 65 5f 70 72 61 67 6d 61 | 73 3b 0d 65 78 74 65 72 |e_pragma|s;.exter|
|000008f0| 6e 20 69 6e 74 20 6c 6f | 6e 67 5f 64 6f 75 62 6c |n int lo|ng_doubl|
|00000900| 65 5f 74 79 70 65 5f 73 | 69 7a 65 3b 0d 65 78 74 |e_type_s|ize;.ext|
|00000910| 65 72 6e 20 69 6e 74 20 | 63 75 72 72 65 6e 74 5f |ern int |current_|
|00000920| 73 74 61 74 69 63 5f 64 | 65 63 6c 3b 0d 0d 2f 2a |static_d|ecl;../*|
|00000930| 20 53 68 6f 75 6c 64 20 | 6f 76 65 72 72 69 64 65 | Should |override|
|00000940| 20 64 65 66 6e 20 69 6e | 20 63 2d 64 65 63 6c 2e | defn in| c-decl.|
|00000950| 63 20 2a 2f 0d 0d 23 64 | 65 66 69 6e 65 20 4c 4f |c */..#d|efine LO|
|00000960| 4e 47 5f 44 4f 55 42 4c | 45 5f 54 59 50 45 5f 53 |NG_DOUBL|E_TYPE_S|
|00000970| 49 5a 45 20 28 6c 6f 6e | 67 5f 64 6f 75 62 6c 65 |IZE (lon|g_double|
|00000980| 5f 74 79 70 65 5f 73 69 | 7a 65 29 0d 0d 2f 2a 20 |_type_si|ze)../* |
|00000990| 52 75 6e 2d 74 69 6d 65 | 20 63 6f 6d 70 69 6c 61 |Run-time| compila|
|000009a0| 74 69 6f 6e 20 70 61 72 | 61 6d 65 74 65 72 73 20 |tion par|ameters |
|000009b0| 73 65 6c 65 63 74 69 6e | 67 20 64 69 66 66 65 72 |selectin|g differ|
|000009c0| 65 6e 74 20 68 61 72 64 | 77 61 72 65 20 73 75 62 |ent hard|ware sub|
|000009d0| 73 65 74 73 2e 20 20 2a | 2f 0d 0d 2f 2a 20 4d 50 |sets. *|/../* MP|
|000009e0| 57 20 63 6f 6d 70 61 74 | 69 62 69 6c 69 74 79 20 |W compat|ibility |
|000009f0| 6d 65 61 6e 73 20 70 6c | 61 69 6e 20 36 38 30 30 |means pl|ain 6800|
|00000a00| 30 20 2b 20 53 41 4e 45 | 20 2b 20 4d 61 63 73 62 |0 + SANE| + Macsb|
|00000a10| 75 67 20 73 79 6d 62 6f | 6c 73 2e 20 2a 2f 0d 0d |ug symbo|ls. */..|
|00000a20| 23 64 65 66 69 6e 65 20 | 54 41 52 47 45 54 5f 44 |#define |TARGET_D|
|00000a30| 45 46 41 55 4c 54 20 30 | 36 32 30 0d 0d 65 78 74 |EFAULT 0|620..ext|
|00000a40| 65 72 6e 20 69 6e 74 20 | 74 61 72 67 65 74 5f 66 |ern int |target_f|
|00000a50| 6c 61 67 73 3b 0d 0d 2f | 2a 20 4d 61 63 72 6f 73 |lags;../|* Macros|
|00000a60| 20 75 73 65 64 20 69 6e | 20 74 68 65 20 6d 61 63 | used in| the mac|
|00000a70| 68 69 6e 65 20 64 65 73 | 63 72 69 70 74 69 6f 6e |hine des|cription|
|00000a80| 20 74 6f 20 74 65 73 74 | 20 74 68 65 20 66 6c 61 | to test| the fla|
|00000a90| 67 73 2e 20 20 2a 2f 0d | 0d 2f 2a 20 43 6f 6d 70 |gs. */.|./* Comp|
|00000aa0| 69 6c 65 20 66 6f 72 20 | 61 20 36 38 30 32 30 20 |ile for |a 68020 |
|00000ab0| 28 6e 6f 74 20 61 20 36 | 38 30 30 30 20 6f 72 20 |(not a 6|8000 or |
|00000ac0| 36 38 30 31 30 29 2e 20 | 20 20 2a 2f 0d 23 64 65 |68010). | */.#de|
|00000ad0| 66 69 6e 65 20 54 41 52 | 47 45 54 5f 36 38 30 32 |fine TAR|GET_6802|
|00000ae0| 30 20 28 74 61 72 67 65 | 74 5f 66 6c 61 67 73 20 |0 (targe|t_flags |
|00000af0| 26 20 31 29 0d 2f 2a 20 | 43 6f 6d 70 69 6c 65 20 |& 1)./* |Compile |
|00000b00| 36 38 38 38 31 20 69 6e | 73 6e 73 20 66 6f 72 20 |68881 in|sns for |
|00000b10| 66 6c 6f 61 74 69 6e 67 | 20 70 6f 69 6e 74 20 28 |floating| point (|
|00000b20| 6e 6f 74 20 6c 69 62 72 | 61 72 79 20 63 61 6c 6c |not libr|ary call|
|00000b30| 73 29 2e 20 20 2a 2f 0d | 23 64 65 66 69 6e 65 20 |s). */.|#define |
|00000b40| 54 41 52 47 45 54 5f 36 | 38 38 38 31 20 28 74 61 |TARGET_6|8881 (ta|
|00000b50| 72 67 65 74 5f 66 6c 61 | 67 73 20 26 20 32 29 0d |rget_fla|gs & 2).|
|00000b60| 2f 2a 20 43 6f 6d 70 69 | 6c 65 20 75 73 69 6e 67 |/* Compi|le using|
|00000b70| 20 36 38 30 32 30 20 62 | 69 74 66 69 65 6c 64 20 | 68020 b|itfield |
|00000b80| 69 6e 73 6e 73 2e 20 20 | 2a 2f 0d 23 64 65 66 69 |insns. |*/.#defi|
|00000b90| 6e 65 20 54 41 52 47 45 | 54 5f 42 49 54 46 49 45 |ne TARGE|T_BITFIE|
|00000ba0| 4c 44 20 28 74 61 72 67 | 65 74 5f 66 6c 61 67 73 |LD (targ|et_flags|
|00000bb0| 20 26 20 34 29 0d 2f 2a | 20 43 6f 6d 70 69 6c 65 | & 4)./*| Compile|
|00000bc0| 20 77 69 74 68 20 31 36 | 2d 62 69 74 20 60 69 6e | with 16|-bit `in|
|00000bd0| 74 27 2e 20 20 2a 2f 0d | 23 64 65 66 69 6e 65 20 |t'. */.|#define |
|00000be0| 54 41 52 47 45 54 5f 53 | 48 4f 52 54 20 28 74 61 |TARGET_S|HORT (ta|
|00000bf0| 72 67 65 74 5f 66 6c 61 | 67 73 20 26 20 30 31 30 |rget_fla|gs & 010|
|00000c00| 29 0d 2f 2a 20 49 6e 63 | 6c 75 64 65 20 4d 61 63 |)./* Inc|lude Mac|
|00000c10| 73 42 75 67 67 61 62 6c | 65 20 73 79 6d 62 6f 6c |sBuggabl|e symbol|
|00000c20| 73 2e 20 2a 2f 0d 23 64 | 65 66 69 6e 65 20 54 41 |s. */.#d|efine TA|
|00000c30| 52 47 45 54 5f 4d 41 43 | 53 42 55 47 20 28 74 61 |RGET_MAC|SBUG (ta|
|00000c40| 72 67 65 74 5f 66 6c 61 | 67 73 20 26 20 30 32 30 |rget_fla|gs & 020|
|00000c50| 29 0d 2f 2a 20 43 6f 6d | 70 69 6c 65 20 74 72 61 |)./* Com|pile tra|
|00000c60| 6e 73 63 65 6e 64 65 6e | 74 61 6c 20 66 6e 73 20 |nscenden|tal fns |
|00000c70| 64 69 72 65 63 74 6c 79 | 20 74 6f 20 38 38 31 20 |directly| to 881 |
|00000c80| 73 74 75 66 66 2e 20 2a | 2f 0d 23 64 65 66 69 6e |stuff. *|/.#defin|
|00000c90| 65 20 54 41 52 47 45 54 | 5f 45 4c 45 4d 53 38 38 |e TARGET|_ELEMS88|
|00000ca0| 31 20 28 74 61 72 67 65 | 74 5f 66 6c 61 67 73 20 |1 (targe|t_flags |
|00000cb0| 26 20 30 34 30 29 0d 2f | 2a 20 50 72 6f 64 75 63 |& 040)./|* Produc|
|00000cc0| 65 20 33 32 2d 62 69 74 | 20 72 65 66 65 72 65 6e |e 32-bit| referen|
|00000cd0| 63 65 73 20 74 6f 20 67 | 6c 6f 62 61 6c 20 64 61 |ces to g|lobal da|
|00000ce0| 74 61 2e 20 2a 2f 0d 23 | 64 65 66 69 6e 65 20 54 |ta. */.#|define T|
|00000cf0| 41 52 47 45 54 5f 33 32 | 42 49 54 44 41 54 41 20 |ARGET_32|BITDATA |
|00000d00| 28 74 61 72 67 65 74 5f | 66 6c 61 67 73 20 26 20 |(target_|flags & |
|00000d10| 30 31 30 30 29 0d 2f 2a | 20 47 65 6e 65 72 61 74 |0100)./*| Generat|
|00000d20| 65 20 63 6f 64 65 20 66 | 6f 72 20 53 41 4e 45 20 |e code f|or SANE |
|00000d30| 63 61 6c 6c 73 20 64 69 | 72 65 63 74 6c 79 2e 20 |calls di|rectly. |
|00000d40| 2a 2f 0d 23 64 65 66 69 | 6e 65 20 54 41 52 47 45 |*/.#defi|ne TARGE|
|00000d50| 54 5f 53 41 4e 45 20 28 | 74 61 72 67 65 74 5f 66 |T_SANE (|target_f|
|00000d60| 6c 61 67 73 20 26 20 30 | 32 30 30 29 0d 2f 2a 20 |lags & 0|200)./* |
|00000d70| 47 65 6e 65 72 61 74 65 | 20 63 6f 64 65 20 66 6f |Generate| code fo|
|00000d80| 72 20 69 6e 74 65 67 65 | 72 20 6c 69 62 72 61 72 |r intege|r librar|
|00000d90| 79 20 63 61 6c 6c 73 20 | 64 69 72 65 63 74 6c 79 |y calls |directly|
|00000da0| 2e 20 2a 2f 0d 23 64 65 | 66 69 6e 65 20 54 41 52 |. */.#de|fine TAR|
|00000db0| 47 45 54 5f 49 4e 54 4c | 49 42 20 28 74 61 72 67 |GET_INTL|IB (targ|
|00000dc0| 65 74 5f 66 6c 61 67 73 | 20 26 20 30 34 30 30 29 |et_flags| & 0400)|
|00000dd0| 0d 2f 2a 20 47 65 6e 65 | 72 61 74 65 20 70 63 2d |./* Gene|rate pc-|
|00000de0| 72 65 6c 61 74 69 76 65 | 20 72 65 66 73 20 66 6f |relative| refs fo|
|00000df0| 72 20 73 74 72 69 6e 67 | 73 20 61 66 74 65 72 20 |r string|s after |
|00000e00| 66 6e 20 6e 61 6d 65 2e | 20 2a 2f 0d 23 64 65 66 |fn name.| */.#def|
|00000e10| 69 6e 65 20 54 41 52 47 | 45 54 5f 42 20 28 74 61 |ine TARG|ET_B (ta|
|00000e20| 72 67 65 74 5f 66 6c 61 | 67 73 20 26 20 30 31 30 |rget_fla|gs & 010|
|00000e30| 30 30 29 0d 2f 2a 20 47 | 65 6e 65 72 61 74 65 20 |00)./* G|enerate |
|00000e40| 6f 62 73 63 75 72 65 20 | 61 64 64 72 65 73 73 69 |obscure |addressi|
|00000e50| 6e 67 20 6d 6f 64 69 66 | 69 63 61 74 69 6f 6e 73 |ng modif|ications|
|00000e60| 2e 20 2a 2f 0d 23 64 65 | 66 69 6e 65 20 54 41 52 |. */.#de|fine TAR|
|00000e70| 47 45 54 5f 46 58 33 30 | 20 28 74 61 72 67 65 74 |GET_FX30| (target|
|00000e80| 5f 66 6c 61 67 73 20 26 | 20 30 32 30 30 30 29 0d |_flags &| 02000).|
|00000e90| 2f 2a 20 53 75 70 70 72 | 65 73 73 20 61 6c 6c 20 |/* Suppr|ess all |
|00000ea0| 73 65 67 6d 65 6e 74 20 | 64 69 72 65 63 74 69 76 |segment |directiv|
|00000eb0| 65 73 20 69 6e 20 74 68 | 65 20 6f 75 74 70 75 74 |es in th|e output|
|00000ec0| 2e 20 2a 2f 0d 23 64 65 | 66 69 6e 65 20 54 41 52 |. */.#de|fine TAR|
|00000ed0| 47 45 54 5f 4e 4f 53 45 | 47 20 28 74 61 72 67 65 |GET_NOSE|G (targe|
|00000ee0| 74 5f 66 6c 61 67 73 20 | 26 20 30 34 30 30 30 29 |t_flags |& 04000)|
|00000ef0| 0d 0d 2f 2a 20 4d 61 63 | 72 6f 20 74 6f 20 64 65 |../* Mac|ro to de|
|00000f00| 66 69 6e 65 20 74 61 62 | 6c 65 73 20 75 73 65 64 |fine tab|les used|
|00000f10| 20 74 6f 20 73 65 74 20 | 74 68 65 20 66 6c 61 67 | to set |the flag|
|00000f20| 73 2e 0d 20 20 20 54 68 | 69 73 20 69 73 20 61 20 |s.. Th|is is a |
|00000f30| 6c 69 73 74 20 69 6e 20 | 62 72 61 63 65 73 20 6f |list in |braces o|
|00000f40| 66 20 70 61 69 72 73 20 | 69 6e 20 62 72 61 63 65 |f pairs |in brace|
|00000f50| 73 2c 0d 20 20 20 65 61 | 63 68 20 70 61 69 72 20 |s,. ea|ch pair |
|00000f60| 62 65 69 6e 67 20 7b 20 | 22 4e 41 4d 45 22 2c 20 |being { |"NAME", |
|00000f70| 56 41 4c 55 45 20 7d 0d | 20 20 20 77 68 65 72 65 |VALUE }.| where|
|00000f80| 20 56 41 4c 55 45 20 69 | 73 20 74 68 65 20 62 69 | VALUE i|s the bi|
|00000f90| 74 73 20 74 6f 20 73 65 | 74 20 6f 72 20 6d 69 6e |ts to se|t or min|
|00000fa0| 75 73 20 74 68 65 20 62 | 69 74 73 20 74 6f 20 63 |us the b|its to c|
|00000fb0| 6c 65 61 72 2e 0d 20 20 | 20 41 6e 20 65 6d 70 74 |lear.. | An empt|
|00000fc0| 79 20 73 74 72 69 6e 67 | 20 4e 41 4d 45 20 69 73 |y string| NAME is|
|00000fd0| 20 75 73 65 64 20 74 6f | 20 69 64 65 6e 74 69 66 | used to| identif|
|00000fe0| 79 20 74 68 65 20 64 65 | 66 61 75 6c 74 20 56 41 |y the de|fault VA|
|00000ff0| 4c 55 45 2e 20 20 2a 2f | 0d 0d 23 64 65 66 69 6e |LUE. */|..#defin|
|00001000| 65 20 54 41 52 47 45 54 | 5f 53 57 49 54 43 48 45 |e TARGET|_SWITCHE|
|00001010| 53 20 20 5c 0d 20 20 7b | 20 7b 20 22 63 36 38 30 |S \. {| { "c680|
|00001020| 32 30 22 2c 20 35 7d 2c | 09 09 09 09 5c 0d 20 20 |20", 5},|....\. |
|00001030| 20 20 7b 20 22 63 36 38 | 30 30 30 22 2c 20 2d 35 | { "c68|000", -5|
|00001040| 7d 2c 09 09 09 09 5c 0d | 20 20 20 20 7b 20 22 63 |},....\.| { "c|
|00001050| 36 38 38 38 31 22 2c 20 | 32 7d 2c 09 09 09 09 5c |68881", |2},....\|
|00001060| 0d 20 20 20 20 7b 20 22 | 73 61 6e 65 22 2c 20 30 |. { "|sane", 0|
|00001070| 32 30 30 20 7d 2c 20 20 | 5c 0d 20 20 20 20 7b 20 |200 }, |\. { |
|00001080| 22 69 6e 73 61 6e 65 22 | 2c 20 2d 30 32 30 30 20 |"insane"|, -0200 |
|00001090| 7d 2c 20 20 5c 0d 20 20 | 20 20 7b 20 22 62 69 74 |}, \. | { "bit|
|000010a0| 66 69 65 6c 64 22 2c 20 | 34 7d 2c 09 09 09 09 5c |field", |4},....\|
|000010b0| 0d 20 20 20 20 7b 20 22 | 6e 6f 62 69 74 66 69 65 |. { "|nobitfie|
|000010c0| 6c 64 22 2c 20 2d 34 7d | 2c 09 09 09 5c 0d 20 20 |ld", -4}|,...\. |
|000010d0| 20 20 7b 20 22 73 68 6f | 72 74 22 2c 20 30 31 30 | { "sho|rt", 010|
|000010e0| 7d 2c 09 09 09 09 5c 0d | 20 20 20 20 7b 20 22 6e |},....\.| { "n|
|000010f0| 6f 73 68 6f 72 74 22 2c | 20 2d 30 31 30 7d 2c 09 |oshort",| -010},.|
|00001100| 09 09 09 5c 0d 20 20 20 | 20 7b 20 22 62 67 66 75 |...\. | { "bgfu|
|00001110| 6c 6c 22 2c 20 30 32 30 | 20 7d 2c 20 5c 0d 20 20 |ll", 020| }, \. |
|00001120| 20 20 7b 20 22 62 67 6f | 66 66 22 2c 20 2d 30 32 | { "bgo|ff", -02|
|00001130| 30 20 7d 2c 20 5c 0d 20 | 20 20 20 7b 20 22 65 6c |0 }, \. | { "el|
|00001140| 65 6d 73 38 38 31 22 2c | 20 30 34 30 7d 2c 20 20 |ems881",| 040}, |
|00001150| 5c 0d 20 20 20 20 7b 20 | 22 6d 22 2c 20 30 31 30 |\. { |"m", 010|
|00001160| 30 7d 2c 20 20 5c 0d 20 | 20 20 20 7b 20 22 6e 6f |0}, \. | { "no|
|00001170| 69 6e 74 6c 69 62 22 2c | 20 2d 30 34 30 30 20 7d |intlib",| -0400 }|
|00001180| 2c 20 20 5c 0d 20 20 20 | 20 7b 20 22 62 22 2c 20 |, \. | { "b", |
|00001190| 30 31 30 30 30 20 7d 2c | 20 20 5c 0d 20 20 20 20 |01000 },| \. |
|000011a0| 7b 20 22 66 78 33 30 22 | 2c 20 30 32 30 30 30 20 |{ "fx30"|, 02000 |
|000011b0| 7d 2c 20 20 5c 0d 20 20 | 20 20 7b 20 22 6e 6f 73 |}, \. | { "nos|
|000011c0| 65 67 22 2c 20 30 34 30 | 30 30 20 7d 2c 20 20 5c |eg", 040|00 }, \|
|000011d0| 0d 20 20 20 20 7b 20 22 | 22 2c 20 54 41 52 47 45 |. { "|", TARGE|
|000011e0| 54 5f 44 45 46 41 55 4c | 54 7d 7d 0d 0d 2f 2a 20 |T_DEFAUL|T}}../* |
|000011f0| 49 6e 20 74 68 65 20 4d | 50 57 20 77 6f 72 6c 64 |In the M|PW world|
|00001200| 2c 20 22 6c 6f 6e 67 20 | 64 6f 75 62 6c 65 22 20 |, "long |double" |
|00001210| 73 69 7a 65 20 64 65 70 | 65 6e 64 73 20 6f 6e 20 |size dep|ends on |
|00001220| 63 6f 6d 70 69 6c 65 72 | 20 66 6c 61 67 20 28 79 |compiler| flag (y|
|00001230| 65 63 68 29 2e 20 2a 2f | 0d 2f 2a 20 65 6c 65 6d |ech). */|./* elem|
|00001240| 73 38 38 31 20 69 6d 70 | 6c 69 65 73 20 6d 63 36 |s881 imp|lies mc6|
|00001250| 38 38 38 31 2e 20 2a 2f | 0d 2f 2a 20 4d 50 57 20 |8881. */|./* MPW |
|00001260| 41 73 6d 20 73 65 65 6d | 73 20 74 6f 20 72 65 71 |Asm seem|s to req|
|00001270| 75 69 72 65 20 2d 6d 63 | 36 38 30 32 30 20 77 68 |uire -mc|68020 wh|
|00001280| 65 6e 20 64 6f 69 6e 67 | 20 6c 61 72 67 65 20 6d |en doing| large m|
|00001290| 65 6d 6f 72 79 20 6d 6f | 64 65 6c 20 28 2d 6d 29 |emory mo|del (-m)|
|000012a0| 2e 20 2a 2f 0d 2f 2a 20 | 4f 6e 65 20 6f 72 20 74 |. */./* |One or t|
|000012b0| 68 65 20 6f 74 68 65 72 | 20 6f 66 20 73 61 6e 65 |he other| of sane|
|000012c0| 2f 6d 63 36 38 38 38 31 | 20 6d 75 73 74 20 62 65 |/mc68881| must be|
|000012d0| 20 6f 6e 2c 20 62 75 74 | 20 6e 6f 74 20 62 6f 74 | on, but| not bot|
|000012e0| 68 2e 20 2a 2f 0d 0d 23 | 64 65 66 69 6e 65 20 4f |h. */..#|define O|
|000012f0| 56 45 52 52 49 44 45 5f | 4f 50 54 49 4f 4e 53 09 |VERRIDE_|OPTIONS.|
|00001300| 09 5c 0d 7b 09 09 09 09 | 09 5c 0d 20 20 69 66 20 |.\.{....|.\. if |
|00001310| 28 54 41 52 47 45 54 5f | 45 4c 45 4d 53 38 38 31 |(TARGET_|ELEMS881|
|00001320| 29 20 74 61 72 67 65 74 | 5f 66 6c 61 67 73 20 7c |) target|_flags ||
|00001330| 3d 20 32 3b 20 20 5c 0d | 20 20 6c 6f 6e 67 5f 64 |= 2; \.| long_d|
|00001340| 6f 75 62 6c 65 5f 74 79 | 70 65 5f 73 69 7a 65 20 |ouble_ty|pe_size |
|00001350| 3d 20 28 54 41 52 47 45 | 54 5f 36 38 38 38 31 20 |= (TARGE|T_68881 |
|00001360| 3f 20 39 36 20 3a 20 38 | 30 29 3b 20 20 5c 0d 20 |? 96 : 8|0); \. |
|00001370| 20 6d 6f 64 65 5f 73 69 | 7a 65 5b 28 69 6e 74 29 | mode_si|ze[(int)|
|00001380| 20 58 46 6d 6f 64 65 5d | 20 3d 20 28 54 41 52 47 | XFmode]| = (TARG|
|00001390| 45 54 5f 36 38 38 38 31 | 20 3f 20 31 32 20 3a 20 |ET_68881| ? 12 : |
|000013a0| 31 30 29 3b 20 20 5c 0d | 20 20 6d 6f 64 65 5f 75 |10); \.| mode_u|
|000013b0| 6e 69 74 5f 73 69 7a 65 | 5b 28 69 6e 74 29 20 58 |nit_size|[(int) X|
|000013c0| 46 6d 6f 64 65 5d 20 3d | 20 28 54 41 52 47 45 54 |Fmode] =| (TARGET|
|000013d0| 5f 36 38 38 38 31 20 3f | 20 31 32 20 3a 20 31 30 |_68881 ?| 12 : 10|
|000013e0| 29 3b 20 20 5c 0d 20 20 | 69 66 20 28 54 41 52 47 |); \. |if (TARG|
|000013f0| 45 54 5f 36 38 38 38 31 | 29 20 74 61 72 67 65 74 |ET_68881|) target|
|00001400| 5f 66 6c 61 67 73 20 26 | 3d 20 7e 30 32 30 30 3b |_flags &|= ~0200;|
|00001410| 20 20 5c 0d 20 20 69 66 | 20 28 54 41 52 47 45 54 | \. if| (TARGET|
|00001420| 5f 53 41 4e 45 29 20 74 | 61 72 67 65 74 5f 66 6c |_SANE) t|arget_fl|
|00001430| 61 67 73 20 26 3d 20 7e | 32 3b 20 20 5c 0d 20 20 |ags &= ~|2; \. |
|00001440| 69 66 20 28 54 41 52 47 | 45 54 5f 33 32 42 49 54 |if (TARG|ET_32BIT|
|00001450| 44 41 54 41 29 20 74 61 | 72 67 65 74 5f 66 6c 61 |DATA) ta|rget_fla|
|00001460| 67 73 20 7c 3d 20 35 3b | 20 20 5c 0d 7d 0d 0c 0d |gs |= 5;| \.}...|
|00001470| 2f 2a 20 74 61 72 67 65 | 74 20 6d 61 63 68 69 6e |/* targe|t machin|
|00001480| 65 20 73 74 6f 72 61 67 | 65 20 6c 61 79 6f 75 74 |e storag|e layout|
|00001490| 20 2a 2f 0d 0d 2f 2a 20 | 44 65 66 69 6e 65 20 74 | */../* |Define t|
|000014a0| 68 69 73 20 69 66 20 6d | 6f 73 74 20 73 69 67 6e |his if m|ost sign|
|000014b0| 69 66 69 63 61 6e 74 20 | 62 69 74 20 69 73 20 6c |ificant |bit is l|
|000014c0| 6f 77 65 73 74 20 6e 75 | 6d 62 65 72 65 64 0d 20 |owest nu|mbered. |
|000014d0| 20 20 69 6e 20 69 6e 73 | 74 72 75 63 74 69 6f 6e | in ins|truction|
|000014e0| 73 20 74 68 61 74 20 6f | 70 65 72 61 74 65 20 6f |s that o|perate o|
|000014f0| 6e 20 6e 75 6d 62 65 72 | 65 64 20 62 69 74 2d 66 |n number|ed bit-f|
|00001500| 69 65 6c 64 73 2e 0d 20 | 20 20 54 68 69 73 20 69 |ields.. | This i|
|00001510| 73 20 74 72 75 65 20 66 | 6f 72 20 36 38 30 32 30 |s true f|or 68020|
|00001520| 20 69 6e 73 6e 73 20 73 | 75 63 68 20 61 73 20 62 | insns s|uch as b|
|00001530| 66 69 6e 73 20 61 6e 64 | 20 62 66 65 78 74 73 2e |fins and| bfexts.|
|00001540| 0d 20 20 20 57 65 20 6d | 61 6b 65 20 69 74 20 74 |. We m|ake it t|
|00001550| 72 75 65 20 61 6c 77 61 | 79 73 20 62 79 20 61 76 |rue alwa|ys by av|
|00001560| 6f 69 64 69 6e 67 20 75 | 73 69 6e 67 20 74 68 65 |oiding u|sing the|
|00001570| 20 73 69 6e 67 6c 65 2d | 62 69 74 20 69 6e 73 6e | single-|bit insn|
|00001580| 73 0d 20 20 20 65 78 63 | 65 70 74 20 69 6e 20 73 |s. exc|ept in s|
|00001590| 70 65 63 69 61 6c 20 63 | 61 73 65 73 20 77 69 74 |pecial c|ases wit|
|000015a0| 68 20 63 6f 6e 73 74 61 | 6e 74 20 62 69 74 20 6e |h consta|nt bit n|
|000015b0| 75 6d 62 65 72 73 2e 20 | 20 2a 2f 0d 23 64 65 66 |umbers. | */.#def|
|000015c0| 69 6e 65 20 42 49 54 53 | 5f 42 49 47 5f 45 4e 44 |ine BITS|_BIG_END|
|000015d0| 49 41 4e 0d 0d 2f 2a 20 | 44 65 66 69 6e 65 20 74 |IAN../* |Define t|
|000015e0| 68 69 73 20 69 66 20 6d | 6f 73 74 20 73 69 67 6e |his if m|ost sign|
|000015f0| 69 66 69 63 61 6e 74 20 | 62 79 74 65 20 6f 66 20 |ificant |byte of |
|00001600| 61 20 77 6f 72 64 20 69 | 73 20 74 68 65 20 6c 6f |a word i|s the lo|
|00001610| 77 65 73 74 20 6e 75 6d | 62 65 72 65 64 2e 20 20 |west num|bered. |
|00001620| 2a 2f 0d 2f 2a 20 54 68 | 61 74 20 69 73 20 74 72 |*/./* Th|at is tr|
|00001630| 75 65 20 6f 6e 20 74 68 | 65 20 36 38 30 30 30 2e |ue on th|e 68000.|
|00001640| 20 20 2a 2f 0d 23 64 65 | 66 69 6e 65 20 42 59 54 | */.#de|fine BYT|
|00001650| 45 53 5f 42 49 47 5f 45 | 4e 44 49 41 4e 0d 0d 2f |ES_BIG_E|NDIAN../|
|00001660| 2a 20 44 65 66 69 6e 65 | 20 74 68 69 73 20 69 66 |* Define| this if|
|00001670| 20 6d 6f 73 74 20 73 69 | 67 6e 69 66 69 63 61 6e | most si|gnifican|
|00001680| 74 20 77 6f 72 64 20 6f | 66 20 61 20 6d 75 6c 74 |t word o|f a mult|
|00001690| 69 77 6f 72 64 20 6e 75 | 6d 62 65 72 20 69 73 20 |iword nu|mber is |
|000016a0| 6e 75 6d 62 65 72 65 64 | 2e 20 20 2a 2f 0d 2f 2a |numbered|. */./*|
|000016b0| 20 46 6f 72 20 36 38 30 | 30 30 20 77 65 20 63 61 | For 680|00 we ca|
|000016c0| 6e 20 64 65 63 69 64 65 | 20 61 72 62 69 74 72 61 |n decide| arbitra|
|000016d0| 72 69 6c 79 0d 20 20 20 | 73 69 6e 63 65 20 74 68 |rily. |since th|
|000016e0| 65 72 65 20 61 72 65 20 | 6e 6f 20 6d 61 63 68 69 |ere are |no machi|
|000016f0| 6e 65 20 69 6e 73 74 72 | 75 63 74 69 6f 6e 73 20 |ne instr|uctions |
|00001700| 66 6f 72 20 74 68 65 6d | 2e 20 20 2a 2f 0d 2f 2a |for them|. */./*|
|00001710| 20 23 64 65 66 69 6e 65 | 20 57 4f 52 44 53 5f 42 | #define| WORDS_B|
|00001720| 49 47 5f 45 4e 44 49 41 | 4e 20 2a 2f 0d 0d 2f 2a |IG_ENDIA|N */../*|
|00001730| 20 6e 75 6d 62 65 72 20 | 6f 66 20 62 69 74 73 20 | number |of bits |
|00001740| 69 6e 20 61 6e 20 61 64 | 64 72 65 73 73 69 62 6c |in an ad|dressibl|
|00001750| 65 20 73 74 6f 72 61 67 | 65 20 75 6e 69 74 20 2a |e storag|e unit *|
|00001760| 2f 0d 23 64 65 66 69 6e | 65 20 42 49 54 53 5f 50 |/.#defin|e BITS_P|
|00001770| 45 52 5f 55 4e 49 54 20 | 38 0d 0d 2f 2a 20 57 69 |ER_UNIT |8../* Wi|
|00001780| 64 74 68 20 69 6e 20 62 | 69 74 73 20 6f 66 20 61 |dth in b|its of a|
|00001790| 20 22 77 6f 72 64 22 2c | 20 77 68 69 63 68 20 69 | "word",| which i|
|000017a0| 73 20 74 68 65 20 63 6f | 6e 74 65 6e 74 73 20 6f |s the co|ntents o|
|000017b0| 66 20 61 20 6d 61 63 68 | 69 6e 65 20 72 65 67 69 |f a mach|ine regi|
|000017c0| 73 74 65 72 2e 0d 20 20 | 20 4e 6f 74 65 20 74 68 |ster.. | Note th|
|000017d0| 61 74 20 74 68 69 73 20 | 69 73 20 6e 6f 74 20 6e |at this |is not n|
|000017e0| 65 63 65 73 73 61 72 69 | 6c 79 20 74 68 65 20 77 |ecessari|ly the w|
|000017f0| 69 64 74 68 20 6f 66 20 | 64 61 74 61 20 74 79 70 |idth of |data typ|
|00001800| 65 20 60 69 6e 74 27 3b | 0d 20 20 20 69 66 20 75 |e `int';|. if u|
|00001810| 73 69 6e 67 20 31 36 2d | 62 69 74 20 69 6e 74 73 |sing 16-|bit ints|
|00001820| 20 6f 6e 20 61 20 36 38 | 30 30 30 2c 20 74 68 69 | on a 68|000, thi|
|00001830| 73 20 77 6f 75 6c 64 20 | 73 74 69 6c 6c 20 62 65 |s would |still be|
|00001840| 20 33 32 2e 0d 20 20 20 | 42 75 74 20 6f 6e 20 61 | 32.. |But on a|
|00001850| 20 6d 61 63 68 69 6e 65 | 20 77 69 74 68 20 31 36 | machine| with 16|
|00001860| 2d 62 69 74 20 72 65 67 | 69 73 74 65 72 73 2c 20 |-bit reg|isters, |
|00001870| 74 68 69 73 20 77 6f 75 | 6c 64 20 62 65 20 31 36 |this wou|ld be 16|
|00001880| 2e 20 20 2a 2f 0d 23 64 | 65 66 69 6e 65 20 42 49 |. */.#d|efine BI|
|00001890| 54 53 5f 50 45 52 5f 57 | 4f 52 44 20 33 32 0d 0d |TS_PER_W|ORD 32..|
|000018a0| 2f 2a 20 57 69 64 74 68 | 20 6f 66 20 61 20 77 6f |/* Width| of a wo|
|000018b0| 72 64 2c 20 69 6e 20 75 | 6e 69 74 73 20 28 62 79 |rd, in u|nits (by|
|000018c0| 74 65 73 29 2e 20 20 2a | 2f 0d 23 64 65 66 69 6e |tes). *|/.#defin|
|000018d0| 65 20 55 4e 49 54 53 5f | 50 45 52 5f 57 4f 52 44 |e UNITS_|PER_WORD|
|000018e0| 20 34 0d 0d 2f 2a 20 57 | 69 64 74 68 20 69 6e 20 | 4../* W|idth in |
|000018f0| 62 69 74 73 20 6f 66 20 | 61 20 70 6f 69 6e 74 65 |bits of |a pointe|
|00001900| 72 2e 0d 20 20 20 53 65 | 65 20 61 6c 73 6f 20 74 |r.. Se|e also t|
|00001910| 68 65 20 6d 61 63 72 6f | 20 60 50 6d 6f 64 65 27 |he macro| `Pmode'|
|00001920| 20 64 65 66 69 6e 65 64 | 20 62 65 6c 6f 77 2e 20 | defined| below. |
|00001930| 20 2a 2f 0d 23 64 65 66 | 69 6e 65 20 50 4f 49 4e | */.#def|ine POIN|
|00001940| 54 45 52 5f 53 49 5a 45 | 20 33 32 0d 0d 2f 2a 20 |TER_SIZE| 32../* |
|00001950| 41 6c 6c 6f 63 61 74 69 | 6f 6e 20 62 6f 75 6e 64 |Allocati|on bound|
|00001960| 61 72 79 20 28 69 6e 20 | 2a 62 69 74 73 2a 29 20 |ary (in |*bits*) |
|00001970| 66 6f 72 20 73 74 6f 72 | 69 6e 67 20 70 6f 69 6e |for stor|ing poin|
|00001980| 74 65 72 73 20 69 6e 20 | 6d 65 6d 6f 72 79 2e 20 |ters in |memory. |
|00001990| 20 2a 2f 0d 23 64 65 66 | 69 6e 65 20 50 4f 49 4e | */.#def|ine POIN|
|000019a0| 54 45 52 5f 42 4f 55 4e | 44 41 52 59 20 31 36 0d |TER_BOUN|DARY 16.|
|000019b0| 0d 2f 2a 20 41 6c 6c 6f | 63 61 74 69 6f 6e 20 62 |./* Allo|cation b|
|000019c0| 6f 75 6e 64 61 72 79 20 | 28 69 6e 20 2a 62 69 74 |oundary |(in *bit|
|000019d0| 73 2a 29 20 66 6f 72 20 | 73 74 6f 72 69 6e 67 20 |s*) for |storing |
|000019e0| 61 72 67 75 6d 65 6e 74 | 73 20 69 6e 20 61 72 67 |argument|s in arg|
|000019f0| 75 6d 65 6e 74 20 6c 69 | 73 74 2e 20 20 2a 2f 0d |ument li|st. */.|
|00001a00| 2f 2a 20 4e 6f 74 65 20 | 74 68 61 74 20 70 72 6f |/* Note |that pro|
|00001a10| 74 6f 74 79 70 65 20 70 | 72 6f 6d 6f 74 69 6f 6e |totype p|romotion|
|00001a20| 20 77 69 6c 6c 20 64 6f | 20 74 72 61 64 69 74 69 | will do| traditi|
|00001a30| 6f 6e 61 6c 20 61 6c 69 | 67 6e 6d 65 6e 74 20 69 |onal ali|gnment i|
|00001a40| 66 20 6e 65 63 65 73 73 | 61 72 79 2c 0d 20 20 20 |f necess|ary,. |
|00001a50| 62 75 74 20 70 61 73 63 | 61 6c 20 66 6e 73 20 77 |but pasc|al fns w|
|00001a60| 69 6c 6c 20 73 74 69 6c | 6c 20 6e 65 65 64 20 70 |ill stil|l need p|
|00001a70| 61 64 64 69 6e 67 2e 20 | 2a 2f 0d 23 64 65 66 69 |adding. |*/.#defi|
|00001a80| 6e 65 20 50 41 52 4d 5f | 42 4f 55 4e 44 41 52 59 |ne PARM_|BOUNDARY|
|00001a90| 20 31 36 0d 0d 2f 2a 20 | 42 6f 75 6e 64 61 72 79 | 16../* |Boundary|
|00001aa0| 20 28 69 6e 20 2a 62 69 | 74 73 2a 29 20 6f 6e 20 | (in *bi|ts*) on |
|00001ab0| 77 68 69 63 68 20 73 74 | 61 63 6b 20 70 6f 69 6e |which st|ack poin|
|00001ac0| 74 65 72 20 73 68 6f 75 | 6c 64 20 62 65 20 61 6c |ter shou|ld be al|
|00001ad0| 69 67 6e 65 64 2e 20 20 | 2a 2f 0d 23 64 65 66 69 |igned. |*/.#defi|
|00001ae0| 6e 65 20 53 54 41 43 4b | 5f 42 4f 55 4e 44 41 52 |ne STACK|_BOUNDAR|
|00001af0| 59 20 31 36 0d 0d 2f 2a | 20 41 6c 6c 6f 63 61 74 |Y 16../*| Allocat|
|00001b00| 69 6f 6e 20 62 6f 75 6e | 64 61 72 79 20 28 69 6e |ion boun|dary (in|
|00001b10| 20 2a 62 69 74 73 2a 29 | 20 66 6f 72 20 74 68 65 | *bits*)| for the|
|00001b20| 20 63 6f 64 65 20 6f 66 | 20 61 20 66 75 6e 63 74 | code of| a funct|
|00001b30| 69 6f 6e 2e 20 20 2a 2f | 0d 23 64 65 66 69 6e 65 |ion. */|.#define|
|00001b40| 20 46 55 4e 43 54 49 4f | 4e 5f 42 4f 55 4e 44 41 | FUNCTIO|N_BOUNDA|
|00001b50| 52 59 20 31 36 0d 0d 2f | 2a 20 41 6c 69 67 6e 6d |RY 16../|* Alignm|
|00001b60| 65 6e 74 20 6f 66 20 66 | 69 65 6c 64 20 61 66 74 |ent of f|ield aft|
|00001b70| 65 72 20 60 69 6e 74 20 | 3a 20 30 27 20 69 6e 20 |er `int |: 0' in |
|00001b80| 61 20 73 74 72 75 63 74 | 75 72 65 2e 20 20 2a 2f |a struct|ure. */|
|00001b90| 0d 23 64 65 66 69 6e 65 | 20 45 4d 50 54 59 5f 46 |.#define| EMPTY_F|
|00001ba0| 49 45 4c 44 5f 42 4f 55 | 4e 44 41 52 59 20 31 36 |IELD_BOU|NDARY 16|
|00001bb0| 0d 0d 2f 2a 20 45 76 65 | 72 79 20 73 74 72 75 63 |../* Eve|ry struc|
|00001bc0| 74 75 72 65 20 6f 72 20 | 75 6e 69 6f 6e 27 73 20 |ture or |union's |
|00001bd0| 73 69 7a 65 20 6d 75 73 | 74 20 62 65 20 61 20 6d |size mus|t be a m|
|00001be0| 75 6c 74 69 70 6c 65 20 | 6f 66 20 32 20 62 79 74 |ultiple |of 2 byt|
|00001bf0| 65 73 2e 20 20 2a 2f 0d | 23 64 65 66 69 6e 65 20 |es. */.|#define |
|00001c00| 53 54 52 55 43 54 55 52 | 45 5f 53 49 5a 45 5f 42 |STRUCTUR|E_SIZE_B|
|00001c10| 4f 55 4e 44 41 52 59 20 | 31 36 0d 0d 2f 2a 20 4e |OUNDARY |16../* N|
|00001c20| 6f 20 64 61 74 61 20 74 | 79 70 65 20 77 61 6e 74 |o data t|ype want|
|00001c30| 73 20 74 6f 20 62 65 20 | 61 6c 69 67 6e 65 64 20 |s to be |aligned |
|00001c40| 72 6f 75 6e 64 65 72 20 | 74 68 61 6e 20 74 68 69 |rounder |than thi|
|00001c50| 73 2e 20 20 2a 2f 0d 23 | 64 65 66 69 6e 65 20 42 |s. */.#|define B|
|00001c60| 49 47 47 45 53 54 5f 41 | 4c 49 47 4e 4d 45 4e 54 |IGGEST_A|LIGNMENT|
|00001c70| 20 31 36 0d 0d 2f 2a 20 | 44 65 66 69 6e 65 20 74 | 16../* |Define t|
|00001c80| 68 69 73 20 69 66 20 6d | 6f 76 65 20 69 6e 73 74 |his if m|ove inst|
|00001c90| 72 75 63 74 69 6f 6e 73 | 20 77 69 6c 6c 20 61 63 |ructions| will ac|
|00001ca0| 74 75 61 6c 6c 79 20 66 | 61 69 6c 20 74 6f 20 77 |tually f|ail to w|
|00001cb0| 6f 72 6b 0d 20 20 20 77 | 68 65 6e 20 67 69 76 65 |ork. w|hen give|
|00001cc0| 6e 20 75 6e 61 6c 69 67 | 6e 65 64 20 64 61 74 61 |n unalig|ned data|
|00001cd0| 2e 20 20 2a 2f 0d 23 64 | 65 66 69 6e 65 20 53 54 |. */.#d|efine ST|
|00001ce0| 52 49 43 54 5f 41 4c 49 | 47 4e 4d 45 4e 54 0d 0d |RICT_ALI|GNMENT..|
|00001cf0| 2f 2a 20 44 65 66 69 6e | 65 20 6e 75 6d 62 65 72 |/* Defin|e number|
|00001d00| 20 6f 66 20 62 69 74 73 | 20 69 6e 20 6d 6f 73 74 | of bits| in most|
|00001d10| 20 62 61 73 69 63 20 69 | 6e 74 65 67 65 72 20 74 | basic i|nteger t|
|00001d20| 79 70 65 2e 0d 20 20 20 | 28 49 66 20 75 6e 64 65 |ype.. |(If unde|
|00001d30| 66 69 6e 65 64 2c 20 64 | 65 66 61 75 6c 74 20 69 |fined, d|efault i|
|00001d40| 73 20 42 49 54 53 5f 50 | 45 52 5f 57 4f 52 44 29 |s BITS_P|ER_WORD)|
|00001d50| 2e 20 20 2a 2f 0d 0d 23 | 64 65 66 69 6e 65 20 49 |. */..#|define I|
|00001d60| 4e 54 5f 54 59 50 45 5f | 53 49 5a 45 20 28 54 41 |NT_TYPE_|SIZE (TA|
|00001d70| 52 47 45 54 5f 53 48 4f | 52 54 20 3f 20 31 36 20 |RGET_SHO|RT ? 16 |
|00001d80| 3a 20 33 32 29 0d 0d 2f | 2a 20 44 65 66 69 6e 65 |: 32)../|* Define|
|00001d90| 20 74 68 65 20 6c 61 72 | 67 65 73 74 20 6d 6f 64 | the lar|gest mod|
|00001da0| 65 20 74 68 61 74 20 63 | 61 6e 20 62 65 20 74 72 |e that c|an be tr|
|00001db0| 65 61 74 65 64 20 61 73 | 20 61 20 72 65 67 75 6c |eated as| a regul|
|00001dc0| 61 72 20 69 6e 74 65 67 | 65 72 2e 20 2a 2f 0d 0d |ar integ|er. */..|
|00001dd0| 2f 2a 20 4d 50 57 20 43 | 20 74 65 6e 64 73 20 74 |/* MPW C| tends t|
|00001de0| 6f 20 74 68 69 6e 6b 20 | 6f 66 20 6c 61 72 67 65 |o think |of large|
|00001df0| 72 20 74 68 69 6e 67 73 | 20 61 73 20 62 6c 6f 63 |r things| as bloc|
|00001e00| 6b 20 6d 6f 64 65 20 6f | 62 6a 65 63 74 73 2c 20 |k mode o|bjects, |
|00001e10| 73 6f 20 77 65 0d 20 20 | 20 73 68 6f 75 6c 64 20 |so we. | should |
|00001e20| 64 6f 20 74 68 69 73 20 | 74 6f 20 6d 61 69 6e 74 |do this |to maint|
|00001e30| 61 69 6e 20 63 72 6f 73 | 73 2d 63 61 6c 6c 61 62 |ain cros|s-callab|
|00001e40| 69 6c 69 74 79 2e 20 2a | 2f 0d 23 64 65 66 69 6e |ility. *|/.#defin|
|00001e50| 65 20 4d 41 58 5f 46 49 | 58 45 44 5f 4d 4f 44 45 |e MAX_FI|XED_MODE|
|00001e60| 5f 53 49 5a 45 20 28 47 | 45 54 5f 4d 4f 44 45 5f |_SIZE (G|ET_MODE_|
|00001e70| 42 49 54 53 49 5a 45 20 | 28 53 49 6d 6f 64 65 29 |BITSIZE |(SImode)|
|00001e80| 29 0d 0c 0d 2f 2a 20 53 | 74 61 6e 64 61 72 64 20 |).../* S|tandard |
|00001e90| 72 65 67 69 73 74 65 72 | 20 75 73 61 67 65 2e 20 |register| usage. |
|00001ea0| 20 2a 2f 0d 0d 2f 2a 20 | 4e 75 6d 62 65 72 20 6f | */../* |Number o|
|00001eb0| 66 20 61 63 74 75 61 6c | 20 68 61 72 64 77 61 72 |f actual| hardwar|
|00001ec0| 65 20 72 65 67 69 73 74 | 65 72 73 2e 0d 20 20 20 |e regist|ers.. |
|00001ed0| 54 68 65 20 68 61 72 64 | 77 61 72 65 20 72 65 67 |The hard|ware reg|
|00001ee0| 69 73 74 65 72 73 20 61 | 72 65 20 61 73 73 69 67 |isters a|re assig|
|00001ef0| 6e 65 64 20 6e 75 6d 62 | 65 72 73 20 66 6f 72 20 |ned numb|ers for |
|00001f00| 74 68 65 20 63 6f 6d 70 | 69 6c 65 72 0d 20 20 20 |the comp|iler. |
|00001f10| 66 72 6f 6d 20 30 20 74 | 6f 20 6a 75 73 74 20 62 |from 0 t|o just b|
|00001f20| 65 6c 6f 77 20 46 49 52 | 53 54 5f 50 53 45 55 44 |elow FIR|ST_PSEUD|
|00001f30| 4f 5f 52 45 47 49 53 54 | 45 52 2e 0d 20 20 20 41 |O_REGIST|ER.. A|
|00001f40| 6c 6c 20 72 65 67 69 73 | 74 65 72 73 20 74 68 61 |ll regis|ters tha|
|00001f50| 74 20 74 68 65 20 63 6f | 6d 70 69 6c 65 72 20 6b |t the co|mpiler k|
|00001f60| 6e 6f 77 73 20 61 62 6f | 75 74 20 6d 75 73 74 20 |nows abo|ut must |
|00001f70| 62 65 20 67 69 76 65 6e | 20 6e 75 6d 62 65 72 73 |be given| numbers|
|00001f80| 2c 0d 20 20 20 65 76 65 | 6e 20 74 68 6f 73 65 20 |,. eve|n those |
|00001f90| 74 68 61 74 20 61 72 65 | 20 6e 6f 74 20 6e 6f 72 |that are| not nor|
|00001fa0| 6d 61 6c 6c 79 20 63 6f | 6e 73 69 64 65 72 65 64 |mally co|nsidered|
|00001fb0| 20 67 65 6e 65 72 61 6c | 20 72 65 67 69 73 74 65 | general| registe|
|00001fc0| 72 73 2e 0d 20 20 20 46 | 6f 72 20 74 68 65 20 36 |rs.. F|or the 6|
|00001fd0| 38 30 30 30 2c 20 77 65 | 20 67 69 76 65 20 74 68 |8000, we| give th|
|00001fe0| 65 20 64 61 74 61 20 72 | 65 67 69 73 74 65 72 73 |e data r|egisters|
|00001ff0| 20 6e 75 6d 62 65 72 73 | 20 30 2d 37 2c 0d 20 20 | numbers| 0-7,. |
|00002000| 20 74 68 65 20 61 64 64 | 72 65 73 73 20 72 65 67 | the add|ress reg|
|00002010| 69 73 74 65 72 73 20 6e | 75 6d 62 65 72 73 20 30 |isters n|umbers 0|
|00002020| 31 30 2d 30 31 37 2c 0d | 20 20 20 61 6e 64 20 74 |10-017,.| and t|
|00002030| 68 65 20 36 38 38 38 31 | 20 66 6c 6f 61 74 69 6e |he 68881| floatin|
|00002040| 67 20 70 6f 69 6e 74 20 | 72 65 67 69 73 74 65 72 |g point |register|
|00002050| 73 20 6e 75 6d 62 65 72 | 73 20 30 32 30 2d 30 32 |s number|s 020-02|
|00002060| 37 2e 20 20 2a 2f 0d 23 | 64 65 66 69 6e 65 20 46 |7. */.#|define F|
|00002070| 49 52 53 54 5f 50 53 45 | 55 44 4f 5f 52 45 47 49 |IRST_PSE|UDO_REGI|
|00002080| 53 54 45 52 20 32 34 0d | 0d 2f 2a 20 31 20 66 6f |STER 24.|./* 1 fo|
|00002090| 72 20 72 65 67 69 73 74 | 65 72 73 20 74 68 61 74 |r regist|ers that|
|000020a0| 20 68 61 76 65 20 70 65 | 72 76 61 73 69 76 65 20 | have pe|rvasive |
|000020b0| 73 74 61 6e 64 61 72 64 | 20 75 73 65 73 0d 20 20 |standard| uses. |
|000020c0| 20 61 6e 64 20 61 72 65 | 20 6e 6f 74 20 61 76 61 | and are| not ava|
|000020d0| 69 6c 61 62 6c 65 20 66 | 6f 72 20 74 68 65 20 72 |ilable f|or the r|
|000020e0| 65 67 69 73 74 65 72 20 | 61 6c 6c 6f 63 61 74 6f |egister |allocato|
|000020f0| 72 2e 0d 20 20 20 4f 6e | 20 74 68 65 20 36 38 30 |r.. On| the 680|
|00002100| 30 30 2c 20 6f 6e 6c 79 | 20 74 68 65 20 73 74 61 |00, only| the sta|
|00002110| 63 6b 20 70 6f 69 6e 74 | 65 72 20 69 73 20 73 75 |ck point|er is su|
|00002120| 63 68 2c 20 62 75 74 20 | 41 35 20 69 73 20 73 70 |ch, but |A5 is sp|
|00002130| 65 63 69 61 6c 20 74 6f | 20 4d 61 63 73 2e 20 2a |ecial to| Macs. *|
|00002140| 2f 0d 23 64 65 66 69 6e | 65 20 46 49 58 45 44 5f |/.#defin|e FIXED_|
|00002150| 52 45 47 49 53 54 45 52 | 53 20 20 5c 0d 20 7b 30 |REGISTER|S \. {0|
|00002160| 2c 20 30 2c 20 30 2c 20 | 30 2c 20 30 2c 20 30 2c |, 0, 0, |0, 0, 0,|
|00002170| 20 30 2c 20 30 2c 20 5c | 0d 20 20 30 2c 20 30 2c | 0, 0, \|. 0, 0,|
|00002180| 20 30 2c 20 30 2c 20 30 | 2c 20 31 2c 20 31 2c 20 | 0, 0, 0|, 1, 1, |
|00002190| 31 2c 20 5c 0d 20 20 30 | 2c 20 30 2c 20 30 2c 20 |1, \. 0|, 0, 0, |
|000021a0| 30 2c 20 30 2c 20 30 2c | 20 30 2c 20 30 2c 20 7d |0, 0, 0,| 0, 0, }|
|000021b0| 0d 0d 2f 2a 20 31 20 66 | 6f 72 20 72 65 67 69 73 |../* 1 f|or regis|
|000021c0| 74 65 72 73 20 6e 6f 74 | 20 61 76 61 69 6c 61 62 |ters not| availab|
|000021d0| 6c 65 20 61 63 72 6f 73 | 73 20 66 75 6e 63 74 69 |le acros|s functi|
|000021e0| 6f 6e 20 63 61 6c 6c 73 | 2e 0d 20 20 20 54 68 65 |on calls|.. The|
|000021f0| 73 65 20 6d 75 73 74 20 | 69 6e 63 6c 75 64 65 20 |se must |include |
|00002200| 74 68 65 20 46 49 58 45 | 44 5f 52 45 47 49 53 54 |the FIXE|D_REGIST|
|00002210| 45 52 53 20 61 6e 64 20 | 61 6c 73 6f 20 61 6e 79 |ERS and |also any|
|00002220| 0d 20 20 20 72 65 67 69 | 73 74 65 72 73 20 74 68 |. regi|sters th|
|00002230| 61 74 20 63 61 6e 20 62 | 65 20 75 73 65 64 20 77 |at can b|e used w|
|00002240| 69 74 68 6f 75 74 20 62 | 65 69 6e 67 20 73 61 76 |ithout b|eing sav|
|00002250| 65 64 2e 0d 20 20 20 54 | 68 65 20 6c 61 74 74 65 |ed.. T|he latte|
|00002260| 72 20 6d 75 73 74 20 69 | 6e 63 6c 75 64 65 20 74 |r must i|nclude t|
|00002270| 68 65 20 72 65 67 69 73 | 74 65 72 73 20 77 68 65 |he regis|ters whe|
|00002280| 72 65 20 76 61 6c 75 65 | 73 20 61 72 65 20 72 65 |re value|s are re|
|00002290| 74 75 72 6e 65 64 0d 20 | 20 20 61 6e 64 20 74 68 |turned. | and th|
|000022a0| 65 20 72 65 67 69 73 74 | 65 72 20 77 68 65 72 65 |e regist|er where|
|000022b0| 20 73 74 72 75 63 74 75 | 72 65 2d 76 61 6c 75 65 | structu|re-value|
|000022c0| 20 61 64 64 72 65 73 73 | 65 73 20 61 72 65 20 70 | address|es are p|
|000022d0| 61 73 73 65 64 2e 0d 20 | 20 20 41 73 69 64 65 20 |assed.. | Aside |
|000022e0| 66 72 6f 6d 20 74 68 61 | 74 2c 20 79 6f 75 20 63 |from tha|t, you c|
|000022f0| 61 6e 20 69 6e 63 6c 75 | 64 65 20 61 73 20 6d 61 |an inclu|de as ma|
|00002300| 6e 79 20 6f 74 68 65 72 | 20 72 65 67 69 73 74 65 |ny other| registe|
|00002310| 72 73 20 61 73 20 79 6f | 75 20 6c 69 6b 65 2e 20 |rs as yo|u like. |
|00002320| 20 2a 2f 0d 2f 2a 20 54 | 68 69 73 20 69 6e 63 6c | */./* T|his incl|
|00002330| 75 64 65 73 20 61 6c 6c | 20 6f 66 20 4d 50 57 27 |udes all| of MPW'|
|00002340| 73 20 73 63 72 61 74 63 | 68 20 72 65 67 69 73 74 |s scratc|h regist|
|00002350| 65 72 73 2e 20 2a 2f 0d | 23 64 65 66 69 6e 65 20 |ers. */.|#define |
|00002360| 43 41 4c 4c 5f 55 53 45 | 44 5f 52 45 47 49 53 54 |CALL_USE|D_REGIST|
|00002370| 45 52 53 20 5c 0d 20 7b | 31 2c 20 31 2c 20 31 2c |ERS \. {|1, 1, 1,|
|00002380| 20 30 2c 20 30 2c 20 30 | 2c 20 30 2c 20 30 2c 20 | 0, 0, 0|, 0, 0, |
|00002390| 5c 0d 20 20 31 2c 20 31 | 2c 20 30 2c 20 30 2c 20 |\. 1, 1|, 0, 0, |
|000023a0| 30 2c 20 31 2c 20 31 2c | 20 31 2c 20 5c 0d 20 20 |0, 1, 1,| 1, \. |
|000023b0| 31 2c 20 31 2c 20 31 2c | 20 31 2c 20 30 2c 20 30 |1, 1, 1,| 1, 0, 0|
|000023c0| 2c 20 30 2c 20 30 2c 20 | 7d 0d 0d 2f 2a 20 4d 61 |, 0, 0, |}../* Ma|
|000023d0| 6b 65 20 73 75 72 65 20 | 65 76 65 72 79 74 68 69 |ke sure |everythi|
|000023e0| 6e 67 27 73 20 66 69 6e | 65 20 69 66 20 77 65 20 |ng's fin|e if we |
|000023f0| 2a 64 6f 6e 27 74 2a 20 | 68 61 76 65 20 61 20 67 |*don't* |have a g|
|00002400| 69 76 65 6e 20 70 72 6f | 63 65 73 73 6f 72 2e 0d |iven pro|cessor..|
|00002410| 20 20 20 54 68 69 73 20 | 61 73 73 75 6d 65 73 20 | This |assumes |
|00002420| 74 68 61 74 20 70 75 74 | 74 69 6e 67 20 61 20 72 |that put|ting a r|
|00002430| 65 67 69 73 74 65 72 20 | 69 6e 20 66 69 78 65 64 |egister |in fixed|
|00002440| 5f 72 65 67 73 20 77 69 | 6c 6c 20 6b 65 65 70 20 |_regs wi|ll keep |
|00002450| 74 68 65 0d 20 20 20 63 | 6f 6d 70 69 6c 65 72 73 |the. c|ompilers|
|00002460| 20 6d 69 74 74 27 73 20 | 63 6f 6d 70 6c 65 74 65 | mitt's |complete|
|00002470| 6c 79 20 6f 66 66 20 69 | 74 2e 20 20 57 65 20 64 |ly off i|t. We d|
|00002480| 6f 6e 27 74 20 62 6f 74 | 68 65 72 20 74 6f 20 7a |on't bot|her to z|
|00002490| 65 72 6f 20 69 74 20 6f | 75 74 0d 20 20 20 6f 66 |ero it o|ut. of|
|000024a0| 20 72 65 67 69 73 74 65 | 72 20 63 6c 61 73 73 65 | registe|r classe|
|000024b0| 73 2e 20 20 49 66 20 54 | 41 52 47 45 54 5f 36 38 |s. If T|ARGET_68|
|000024c0| 38 38 31 20 69 73 20 6e | 6f 74 20 73 65 74 2c 0d |881 is n|ot set,.|
|000024d0| 20 20 20 74 68 65 20 63 | 6f 6d 70 69 6c 65 72 20 | the c|ompiler |
|000024e0| 77 6f 6e 27 74 20 74 6f | 75 63 68 20 73 69 6e 63 |won't to|uch sinc|
|000024f0| 65 20 6e 6f 20 69 6e 73 | 74 72 75 63 74 69 6f 6e |e no ins|truction|
|00002500| 73 20 74 68 61 74 20 75 | 73 65 20 74 68 65 73 65 |s that u|se these|
|00002510| 0d 20 20 20 72 65 67 69 | 73 74 65 72 73 20 77 69 |. regi|sters wi|
|00002520| 6c 6c 20 62 65 20 76 61 | 6c 69 64 2e 20 20 2a 2f |ll be va|lid. */|
|00002530| 0d 23 64 65 66 69 6e 65 | 20 43 4f 4e 44 49 54 49 |.#define| CONDITI|
|00002540| 4f 4e 41 4c 5f 52 45 47 | 49 53 54 45 52 5f 55 53 |ONAL_REG|ISTER_US|
|00002550| 41 47 45 20 5c 0d 7b 20 | 09 09 09 09 09 09 5c 0d |AGE \.{ |......\.|
|00002560| 20 20 69 6e 74 20 69 3b | 20 09 09 09 09 09 5c 0d | int i;| .....\.|
|00002570| 20 20 48 41 52 44 5f 52 | 45 47 5f 53 45 54 20 78 | HARD_R|EG_SET x|
|00002580| 3b 20 09 09 09 09 5c 0d | 20 20 20 20 7b 20 09 09 |; ....\.| { ..|
|00002590| 09 09 09 09 5c 0d 20 20 | 20 20 20 20 43 4f 50 59 |....\. | COPY|
|000025a0| 5f 48 41 52 44 5f 52 45 | 47 5f 53 45 54 20 28 78 |_HARD_RE|G_SET (x|
|000025b0| 2c 20 72 65 67 5f 63 6c | 61 73 73 5f 63 6f 6e 74 |, reg_cl|ass_cont|
|000025c0| 65 6e 74 73 5b 28 69 6e | 74 29 4e 4f 5f 52 45 47 |ents[(in|t)NO_REG|
|000025d0| 53 5d 29 3b 20 5c 0d 20 | 20 20 20 20 20 66 6f 72 |S]); \. | for|
|000025e0| 20 28 69 20 3d 20 30 3b | 20 69 20 3c 20 46 49 52 | (i = 0;| i < FIR|
|000025f0| 53 54 5f 50 53 45 55 44 | 4f 5f 52 45 47 49 53 54 |ST_PSEUD|O_REGIST|
|00002600| 45 52 3b 20 69 2b 2b 20 | 29 20 5c 0d 20 20 20 20 |ER; i++ |) \. |
|00002610| 20 20 20 69 66 20 28 54 | 45 53 54 5f 48 41 52 44 | if (T|EST_HARD|
|00002620| 5f 52 45 47 5f 42 49 54 | 20 28 78 2c 20 69 29 29 |_REG_BIT| (x, i))|
|00002630| 20 09 09 5c 0d 09 66 69 | 78 65 64 5f 72 65 67 73 | ..\..fi|xed_regs|
|00002640| 5b 69 5d 20 3d 20 63 61 | 6c 6c 5f 75 73 65 64 5f |[i] = ca|ll_used_|
|00002650| 72 65 67 73 5b 69 5d 20 | 3d 20 31 3b 20 09 5c 0d |regs[i] |= 1; .\.|
|00002660| 20 20 20 20 7d 20 09 09 | 09 09 09 09 5c 0d 7d 0d | } ..|....\.}.|
|00002670| 0d 2f 2a 20 52 65 74 75 | 72 6e 20 6e 75 6d 62 65 |./* Retu|rn numbe|
|00002680| 72 20 6f 66 20 63 6f 6e | 73 65 63 75 74 69 76 65 |r of con|secutive|
|00002690| 20 68 61 72 64 20 72 65 | 67 73 20 6e 65 65 64 65 | hard re|gs neede|
|000026a0| 64 20 73 74 61 72 74 69 | 6e 67 20 61 74 20 72 65 |d starti|ng at re|
|000026b0| 67 20 52 45 47 4e 4f 0d | 20 20 20 74 6f 20 68 6f |g REGNO.| to ho|
|000026c0| 6c 64 20 73 6f 6d 65 74 | 68 69 6e 67 20 6f 66 20 |ld somet|hing of |
|000026d0| 6d 6f 64 65 20 4d 4f 44 | 45 2e 0d 20 20 20 54 68 |mode MOD|E.. Th|
|000026e0| 69 73 20 69 73 20 6f 72 | 64 69 6e 61 72 69 6c 79 |is is or|dinarily|
|000026f0| 20 74 68 65 20 6c 65 6e | 67 74 68 20 69 6e 20 77 | the len|gth in w|
|00002700| 6f 72 64 73 20 6f 66 20 | 61 20 76 61 6c 75 65 20 |ords of |a value |
|00002710| 6f 66 20 6d 6f 64 65 20 | 4d 4f 44 45 0d 20 20 20 |of mode |MODE. |
|00002720| 62 75 74 20 63 61 6e 20 | 62 65 20 6c 65 73 73 20 |but can |be less |
|00002730| 66 6f 72 20 63 65 72 74 | 61 69 6e 20 6d 6f 64 65 |for cert|ain mode|
|00002740| 73 20 69 6e 20 73 70 65 | 63 69 61 6c 20 6c 6f 6e |s in spe|cial lon|
|00002750| 67 20 72 65 67 69 73 74 | 65 72 73 2e 0d 0d 20 20 |g regist|ers... |
|00002760| 20 4f 6e 20 74 68 65 20 | 36 38 30 30 30 2c 20 6f | On the |68000, o|
|00002770| 72 64 69 6e 61 72 79 20 | 72 65 67 69 73 74 65 72 |rdinary |register|
|00002780| 73 20 68 6f 6c 64 20 33 | 32 20 62 69 74 73 20 77 |s hold 3|2 bits w|
|00002790| 6f 72 74 68 3b 0d 20 20 | 20 66 6f 72 20 74 68 65 |orth;. | for the|
|000027a0| 20 36 38 38 38 31 20 72 | 65 67 69 73 74 65 72 73 | 68881 r|egisters|
|000027b0| 2c 20 61 20 73 69 6e 67 | 6c 65 20 72 65 67 69 73 |, a sing|le regis|
|000027c0| 74 65 72 20 69 73 20 61 | 6c 77 61 79 73 20 65 6e |ter is a|lways en|
|000027d0| 6f 75 67 68 20 66 6f 72 | 0d 20 20 20 61 6e 79 74 |ough for|. anyt|
|000027e0| 68 69 6e 67 20 74 68 61 | 74 20 63 61 6e 20 62 65 |hing tha|t can be|
|000027f0| 20 73 74 6f 72 65 64 20 | 69 6e 20 74 68 65 6d 20 | stored |in them |
|00002800| 61 74 20 61 6c 6c 2e 20 | 20 2a 2f 0d 23 64 65 66 |at all. | */.#def|
|00002810| 69 6e 65 20 48 41 52 44 | 5f 52 45 47 4e 4f 5f 4e |ine HARD|_REGNO_N|
|00002820| 52 45 47 53 28 52 45 47 | 4e 4f 2c 20 4d 4f 44 45 |REGS(REG|NO, MODE|
|00002830| 29 20 20 20 5c 0d 20 20 | 28 28 52 45 47 4e 4f 29 |) \. |((REGNO)|
|00002840| 20 3e 3d 20 31 36 20 3f | 20 31 09 09 09 09 5c 0d | >= 16 ?| 1....\.|
|00002850| 20 20 20 3a 20 28 28 47 | 45 54 5f 4d 4f 44 45 5f | : ((G|ET_MODE_|
|00002860| 53 49 5a 45 20 28 4d 4f | 44 45 29 20 2b 20 55 4e |SIZE (MO|DE) + UN|
|00002870| 49 54 53 5f 50 45 52 5f | 57 4f 52 44 20 2d 20 31 |ITS_PER_|WORD - 1|
|00002880| 29 20 2f 20 55 4e 49 54 | 53 5f 50 45 52 5f 57 4f |) / UNIT|S_PER_WO|
|00002890| 52 44 29 29 0d 0d 2f 2a | 20 56 61 6c 75 65 20 69 |RD))../*| Value i|
|000028a0| 73 20 31 20 69 66 20 68 | 61 72 64 20 72 65 67 69 |s 1 if h|ard regi|
|000028b0| 73 74 65 72 20 52 45 47 | 4e 4f 20 63 61 6e 20 68 |ster REG|NO can h|
|000028c0| 6f 6c 64 20 61 20 76 61 | 6c 75 65 20 6f 66 20 6d |old a va|lue of m|
|000028d0| 61 63 68 69 6e 65 2d 6d | 6f 64 65 20 4d 4f 44 45 |achine-m|ode MODE|
|000028e0| 2e 0d 20 20 20 4f 6e 20 | 74 68 65 20 36 38 30 30 |.. On |the 6800|
|000028f0| 30 2c 20 74 68 65 20 63 | 70 75 20 72 65 67 69 73 |0, the c|pu regis|
|00002900| 74 65 72 73 20 63 61 6e | 20 68 6f 6c 64 20 61 6e |ters can| hold an|
|00002910| 79 20 6d 6f 64 65 20 62 | 75 74 20 74 68 65 20 36 |y mode b|ut the 6|
|00002920| 38 38 38 31 20 72 65 67 | 69 73 74 65 72 73 0d 20 |8881 reg|isters. |
|00002930| 20 20 63 61 6e 20 68 6f | 6c 64 20 6f 6e 6c 79 20 | can ho|ld only |
|00002940| 66 6c 6f 61 74 20 6d 6f | 64 65 73 2e 20 20 41 6e |float mo|des. An|
|00002950| 64 20 74 68 65 20 36 38 | 38 38 31 20 72 65 67 69 |d the 68|881 regi|
|00002960| 73 74 65 72 73 20 63 61 | 6e 27 74 20 68 6f 6c 64 |sters ca|n't hold|
|00002970| 20 61 6e 79 74 68 69 6e | 67 0d 20 20 20 69 66 20 | anythin|g. if |
|00002980| 36 38 38 38 31 20 75 73 | 65 20 69 73 20 64 69 73 |68881 us|e is dis|
|00002990| 61 62 6c 65 64 2e 20 20 | 41 63 74 75 61 6c 6c 79 |abled. |Actually|
|000029a0| 2c 20 77 65 20 68 61 76 | 65 20 74 6f 20 65 78 63 |, we hav|e to exc|
|000029b0| 6c 75 64 65 20 64 36 20 | 61 6e 64 2f 6f 72 20 64 |lude d6 |and/or d|
|000029c0| 37 20 69 66 0d 20 20 20 | 77 65 27 72 65 20 75 73 |7 if. |we're us|
|000029d0| 69 6e 67 20 32 20 6f 72 | 20 33 20 72 65 67 69 73 |ing 2 or| 3 regis|
|000029e0| 74 65 72 73 20 74 6f 20 | 68 6f 6c 64 20 61 20 76 |ters to |hold a v|
|000029f0| 61 6c 75 65 2c 20 73 69 | 6e 63 65 20 74 68 65 20 |alue, si|nce the |
|00002a00| 22 6e 65 78 74 22 20 72 | 65 67 69 73 74 65 72 28 |"next" r|egister(|
|00002a10| 73 29 0d 20 20 20 77 6f | 75 6c 64 20 62 65 20 61 |s). wo|uld be a|
|00002a20| 30 2f 61 31 2c 20 61 6e | 64 20 74 68 69 6e 67 73 |0/a1, an|d things|
|00002a30| 20 77 6f 75 6c 64 20 67 | 65 74 20 72 65 61 6c 6c | would g|et reall|
|00002a40| 79 20 63 6f 6e 66 75 73 | 69 6e 67 2e 20 2a 2f 0d |y confus|ing. */.|
|00002a50| 23 64 65 66 69 6e 65 20 | 48 41 52 44 5f 52 45 47 |#define |HARD_REG|
|00002a60| 4e 4f 5f 4d 4f 44 45 5f | 4f 4b 28 52 45 47 4e 4f |NO_MODE_|OK(REGNO|
|00002a70| 2c 20 4d 4f 44 45 29 20 | 5c 0d 20 20 28 28 28 52 |, MODE) |\. (((R|
|00002a80| 45 47 4e 4f 29 20 3c 20 | 31 36 20 26 26 20 20 5c |EGNO) < |16 && \|
|00002a90| 0d 20 20 20 20 21 20 28 | 47 45 54 5f 4d 4f 44 45 |. ! (|GET_MODE|
|00002aa0| 5f 53 49 5a 45 20 28 4d | 4f 44 45 29 20 3e 20 34 |_SIZE (M|ODE) > 4|
|00002ab0| 20 26 26 20 28 52 45 47 | 4e 4f 29 20 3e 3d 20 36 | && (REG|NO) >= 6|
|00002ac0| 29 20 26 26 20 20 5c 0d | 20 20 20 20 21 20 28 47 |) && \.| ! (G|
|00002ad0| 45 54 5f 4d 4f 44 45 5f | 53 49 5a 45 20 28 4d 4f |ET_MODE_|SIZE (MO|
|00002ae0| 44 45 29 20 3e 20 38 20 | 26 26 20 28 52 45 47 4e |DE) > 8 |&& (REGN|
|00002af0| 4f 29 20 3e 3d 20 36 29 | 29 20 20 5c 0d 20 20 20 |O) >= 6)|) \. |
|00002b00| 7c 7c 20 28 54 41 52 47 | 45 54 5f 36 38 38 38 31 ||| (TARG|ET_68881|
|00002b10| 20 26 26 20 47 45 54 5f | 4d 4f 44 45 5f 43 4c 41 | && GET_|MODE_CLA|
|00002b20| 53 53 20 28 4d 4f 44 45 | 29 20 3d 3d 20 4d 4f 44 |SS (MODE|) == MOD|
|00002b30| 45 5f 46 4c 4f 41 54 29 | 29 0d 0d 2f 2a 20 56 61 |E_FLOAT)|)../* Va|
|00002b40| 6c 75 65 20 69 73 20 31 | 20 69 66 20 69 74 20 69 |lue is 1| if it i|
|00002b50| 73 20 61 20 67 6f 6f 64 | 20 69 64 65 61 20 74 6f |s a good| idea to|
|00002b60| 20 74 69 65 20 74 77 6f | 20 70 73 65 75 64 6f 20 | tie two| pseudo |
|00002b70| 72 65 67 69 73 74 65 72 | 73 0d 20 20 20 77 68 65 |register|s. whe|
|00002b80| 6e 20 6f 6e 65 20 68 61 | 73 20 6d 6f 64 65 20 4d |n one ha|s mode M|
|00002b90| 4f 44 45 31 20 61 6e 64 | 20 6f 6e 65 20 68 61 73 |ODE1 and| one has|
|00002ba0| 20 6d 6f 64 65 20 4d 4f | 44 45 32 2e 0d 20 20 20 | mode MO|DE2.. |
|00002bb0| 49 66 20 48 41 52 44 5f | 52 45 47 4e 4f 5f 4d 4f |If HARD_|REGNO_MO|
|00002bc0| 44 45 5f 4f 4b 20 63 6f | 75 6c 64 20 70 72 6f 64 |DE_OK co|uld prod|
|00002bd0| 75 63 65 20 64 69 66 66 | 65 72 65 6e 74 20 76 61 |uce diff|erent va|
|00002be0| 6c 75 65 73 20 66 6f 72 | 20 4d 4f 44 45 31 20 61 |lues for| MODE1 a|
|00002bf0| 6e 64 20 4d 4f 44 45 32 | 2c 0d 20 20 20 66 6f 72 |nd MODE2|,. for|
|00002c00| 20 61 6e 79 20 68 61 72 | 64 20 72 65 67 2c 20 74 | any har|d reg, t|
|00002c10| 68 65 6e 20 74 68 69 73 | 20 6d 75 73 74 20 62 65 |hen this| must be|
|00002c20| 20 30 20 66 6f 72 20 63 | 6f 72 72 65 63 74 20 6f | 0 for c|orrect o|
|00002c30| 75 74 70 75 74 2e 0d 0d | 20 20 20 47 6f 69 6e 67 |utput...| Going|
|00002c40| 20 62 79 20 74 68 65 20 | 61 62 6f 76 65 20 64 65 | by the |above de|
|00002c50| 66 6e 2c 20 77 65 20 63 | 61 6e 20 74 69 65 20 6d |fn, we c|an tie m|
|00002c60| 6f 64 65 73 20 66 6f 72 | 20 67 65 6e 65 72 61 6c |odes for| general|
|00002c70| 20 72 65 67 73 20 28 77 | 68 61 74 20 61 62 6f 75 | regs (w|hat abou|
|00002c80| 74 0d 20 20 20 64 36 2f | 64 37 20 74 68 6f 3f 29 |t. d6/|d7 tho?)|
|00002c90| 20 61 6e 64 20 65 71 75 | 61 6c 20 6d 6f 64 65 73 | and equ|al modes|
|00002ca0| 20 66 6f 72 20 66 6c 6f | 61 74 20 72 65 67 73 2e | for flo|at regs.|
|00002cb0| 20 2a 2f 0d 23 64 65 66 | 69 6e 65 20 4d 4f 44 45 | */.#def|ine MODE|
|00002cc0| 53 5f 54 49 45 41 42 4c | 45 5f 50 28 4d 4f 44 45 |S_TIEABL|E_P(MODE|
|00002cd0| 31 2c 20 4d 4f 44 45 32 | 29 09 09 09 5c 0d 20 20 |1, MODE2|)...\. |
|00002ce0| 20 28 54 41 52 47 45 54 | 5f 36 38 38 38 31 09 3f | (TARGET|_68881.?|
|00002cf0| 09 09 09 09 5c 0d 20 20 | 20 28 28 47 45 54 5f 4d |....\. | ((GET_M|
|00002d00| 4f 44 45 5f 43 4c 41 53 | 53 20 28 4d 4f 44 45 31 |ODE_CLAS|S (MODE1|
|00002d10| 29 20 3d 3d 20 4d 4f 44 | 45 5f 46 4c 4f 41 54 29 |) == MOD|E_FLOAT)|
|00002d20| 20 20 20 20 20 20 20 20 | 20 20 20 5c 0d 20 20 20 | | \. |
|00002d30| 20 20 20 20 3d 3d 20 28 | 47 45 54 5f 4d 4f 44 45 | == (|GET_MODE|
|00002d40| 5f 43 4c 41 53 53 20 28 | 4d 4f 44 45 32 29 20 3d |_CLASS (|MODE2) =|
|00002d50| 3d 20 4d 4f 44 45 5f 46 | 4c 4f 41 54 29 29 20 3a |= MODE_F|LOAT)) :|
|00002d60| 20 20 5c 0d 20 20 20 28 | 28 47 45 54 5f 4d 4f 44 | \. (|(GET_MOD|
|00002d70| 45 5f 53 49 5a 45 20 28 | 4d 4f 44 45 31 29 20 3c |E_SIZE (|MODE1) <|
|00002d80| 20 38 29 20 26 26 20 28 | 47 45 54 5f 4d 4f 44 45 | 8) && (|GET_MODE|
|00002d90| 5f 53 49 5a 45 20 28 4d | 4f 44 45 32 29 20 3c 20 |_SIZE (M|ODE2) < |
|00002da0| 38 29 29 29 0d 0d 2f 2a | 20 53 70 65 63 69 66 79 |8)))../*| Specify|
|00002db0| 20 74 68 65 20 72 65 67 | 69 73 74 65 72 73 20 75 | the reg|isters u|
|00002dc0| 73 65 64 20 66 6f 72 20 | 63 65 72 74 61 69 6e 20 |sed for |certain |
|00002dd0| 73 74 61 6e 64 61 72 64 | 20 70 75 72 70 6f 73 65 |standard| purpose|
|00002de0| 73 2e 0d 20 20 20 54 68 | 65 20 76 61 6c 75 65 73 |s.. Th|e values|
|00002df0| 20 6f 66 20 74 68 65 73 | 65 20 6d 61 63 72 6f 73 | of thes|e macros|
|00002e00| 20 61 72 65 20 72 65 67 | 69 73 74 65 72 20 6e 75 | are reg|ister nu|
|00002e10| 6d 62 65 72 73 2e 20 20 | 2a 2f 0d 0d 2f 2a 20 6d |mbers. |*/../* m|
|00002e20| 36 38 30 30 30 20 70 63 | 20 69 73 6e 27 74 20 6f |68000 pc| isn't o|
|00002e30| 76 65 72 6c 6f 61 64 65 | 64 20 6f 6e 20 61 20 72 |verloade|d on a r|
|00002e40| 65 67 69 73 74 65 72 2e | 20 20 2a 2f 0d 2f 2a 20 |egister.| */./* |
|00002e50| 23 64 65 66 69 6e 65 20 | 50 43 5f 52 45 47 4e 55 |#define |PC_REGNU|
|00002e60| 4d 20 20 2a 2f 0d 0d 2f | 2a 20 52 65 67 69 73 74 |M */../|* Regist|
|00002e70| 65 72 20 74 6f 20 75 73 | 65 20 66 6f 72 20 70 75 |er to us|e for pu|
|00002e80| 73 68 69 6e 67 20 66 75 | 6e 63 74 69 6f 6e 20 61 |shing fu|nction a|
|00002e90| 72 67 75 6d 65 6e 74 73 | 2e 20 20 2a 2f 0d 23 64 |rguments|. */.#d|
|00002ea0| 65 66 69 6e 65 20 53 54 | 41 43 4b 5f 50 4f 49 4e |efine ST|ACK_POIN|
|00002eb0| 54 45 52 5f 52 45 47 4e | 55 4d 20 31 35 0d 0d 2f |TER_REGN|UM 15../|
|00002ec0| 2a 20 42 61 73 65 20 72 | 65 67 69 73 74 65 72 20 |* Base r|egister |
|00002ed0| 66 6f 72 20 61 63 63 65 | 73 73 20 74 6f 20 6c 6f |for acce|ss to lo|
|00002ee0| 63 61 6c 20 76 61 72 69 | 61 62 6c 65 73 20 6f 66 |cal vari|ables of|
|00002ef0| 20 74 68 65 20 66 75 6e | 63 74 69 6f 6e 2e 20 20 | the fun|ction. |
|00002f00| 2a 2f 0d 23 64 65 66 69 | 6e 65 20 46 52 41 4d 45 |*/.#defi|ne FRAME|
|00002f10| 5f 50 4f 49 4e 54 45 52 | 5f 52 45 47 4e 55 4d 20 |_POINTER|_REGNUM |
|00002f20| 31 34 0d 0d 2f 2a 20 56 | 61 6c 75 65 20 73 68 6f |14../* V|alue sho|
|00002f30| 75 6c 64 20 62 65 20 6e | 6f 6e 7a 65 72 6f 20 69 |uld be n|onzero i|
|00002f40| 66 20 66 75 6e 63 74 69 | 6f 6e 73 20 6d 75 73 74 |f functi|ons must|
|00002f50| 20 68 61 76 65 20 66 72 | 61 6d 65 20 70 6f 69 6e | have fr|ame poin|
|00002f60| 74 65 72 73 2e 0d 20 20 | 20 5a 65 72 6f 20 6d 65 |ters.. | Zero me|
|00002f70| 61 6e 73 20 74 68 65 20 | 66 72 61 6d 65 20 70 6f |ans the |frame po|
|00002f80| 69 6e 74 65 72 20 6e 65 | 65 64 20 6e 6f 74 20 62 |inter ne|ed not b|
|00002f90| 65 20 73 65 74 20 75 70 | 20 28 61 6e 64 20 70 61 |e set up| (and pa|
|00002fa0| 72 6d 73 0d 20 20 20 6d | 61 79 20 62 65 20 61 63 |rms. m|ay be ac|
|00002fb0| 63 65 73 73 65 64 20 76 | 69 61 20 74 68 65 20 73 |cessed v|ia the s|
|00002fc0| 74 61 63 6b 20 70 6f 69 | 6e 74 65 72 29 20 69 6e |tack poi|nter) in|
|00002fd0| 20 66 75 6e 63 74 69 6f | 6e 73 20 74 68 61 74 20 | functio|ns that |
|00002fe0| 73 65 65 6d 20 73 75 69 | 74 61 62 6c 65 2e 0d 20 |seem sui|table.. |
|00002ff0| 20 20 54 68 69 73 20 69 | 73 20 63 6f 6d 70 75 74 | This i|s comput|
|00003000| 65 64 20 69 6e 20 60 72 | 65 6c 6f 61 64 27 2c 20 |ed in `r|eload', |
|00003010| 69 6e 20 72 65 6c 6f 61 | 64 31 2e 63 2e 20 20 2a |in reloa|d1.c. *|
|00003020| 2f 0d 23 64 65 66 69 6e | 65 20 46 52 41 4d 45 5f |/.#defin|e FRAME_|
|00003030| 50 4f 49 4e 54 45 52 5f | 52 45 51 55 49 52 45 44 |POINTER_|REQUIRED|
|00003040| 20 30 0d 0d 2f 2a 20 42 | 61 73 65 20 72 65 67 69 | 0../* B|ase regi|
|00003050| 73 74 65 72 20 66 6f 72 | 20 61 63 63 65 73 73 20 |ster for| access |
|00003060| 74 6f 20 61 72 67 75 6d | 65 6e 74 73 20 6f 66 20 |to argum|ents of |
|00003070| 74 68 65 20 66 75 6e 63 | 74 69 6f 6e 2e 20 20 2a |the func|tion. *|
|00003080| 2f 0d 23 64 65 66 69 6e | 65 20 41 52 47 5f 50 4f |/.#defin|e ARG_PO|
|00003090| 49 4e 54 45 52 5f 52 45 | 47 4e 55 4d 20 31 34 0d |INTER_RE|GNUM 14.|
|000030a0| 0d 2f 2a 20 52 65 67 69 | 73 74 65 72 20 69 6e 20 |./* Regi|ster in |
|000030b0| 77 68 69 63 68 20 73 74 | 61 74 69 63 2d 63 68 61 |which st|atic-cha|
|000030c0| 69 6e 20 69 73 20 70 61 | 73 73 65 64 20 74 6f 20 |in is pa|ssed to |
|000030d0| 61 20 66 75 6e 63 74 69 | 6f 6e 2e 20 20 2a 2f 0d |a functi|on. */.|
|000030e0| 23 64 65 66 69 6e 65 20 | 53 54 41 54 49 43 5f 43 |#define |STATIC_C|
|000030f0| 48 41 49 4e 5f 52 45 47 | 4e 55 4d 20 38 0d 0d 2f |HAIN_REG|NUM 8../|
|00003100| 2a 20 52 65 67 69 73 74 | 65 72 20 69 6e 20 77 68 |* Regist|er in wh|
|00003110| 69 63 68 20 61 64 64 72 | 65 73 73 20 74 6f 20 73 |ich addr|ess to s|
|00003120| 74 6f 72 65 20 61 20 73 | 74 72 75 63 74 75 72 65 |tore a s|tructure|
|00003130| 20 76 61 6c 75 65 0d 20 | 20 20 61 72 72 69 76 65 | value. | arrive|
|00003140| 73 20 69 6e 20 74 68 65 | 20 66 75 6e 63 74 69 6f |s in the| functio|
|00003150| 6e 2e 0d 0d 20 20 20 54 | 68 65 20 4d 50 57 20 33 |n... T|he MPW 3|
|00003160| 2e 30 20 63 61 6c 6c 69 | 6e 67 20 63 6f 6e 76 65 |.0 calli|ng conve|
|00003170| 6e 74 69 6f 6e 20 69 73 | 20 74 6f 20 68 61 76 65 |ntion is| to have|
|00003180| 20 74 68 69 6e 67 73 20 | 6f 6e 20 74 68 65 20 73 | things |on the s|
|00003190| 74 61 63 6b 20 74 6f 70 | 2e 20 20 2a 2f 0d 23 64 |tack top|. */.#d|
|000031a0| 65 66 69 6e 65 20 53 54 | 52 55 43 54 5f 56 41 4c |efine ST|RUCT_VAL|
|000031b0| 55 45 5f 49 4e 43 4f 4d | 49 4e 47 09 5c 0d 20 20 |UE_INCOM|ING.\. |
|000031c0| 20 67 65 6e 5f 72 74 78 | 20 28 4d 45 4d 2c 20 50 | gen_rtx| (MEM, P|
|000031d0| 6d 6f 64 65 2c 20 67 65 | 6e 5f 72 74 78 20 28 50 |mode, ge|n_rtx (P|
|000031e0| 4c 55 53 2c 20 50 6d 6f | 64 65 2c 20 66 72 61 6d |LUS, Pmo|de, fram|
|000031f0| 65 5f 70 6f 69 6e 74 65 | 72 5f 72 74 78 2c 09 5c |e_pointe|r_rtx,.\|
|00003200| 0d 09 09 09 09 20 67 65 | 6e 5f 72 74 78 20 28 43 |..... ge|n_rtx (C|
|00003210| 4f 4e 53 54 5f 49 4e 54 | 2c 20 56 4f 49 44 6d 6f |ONST_INT|, VOIDmo|
|00003220| 64 65 2c 20 38 29 29 29 | 0d 0d 2f 2a 20 50 6c 61 |de, 8)))|../* Pla|
|00003230| 63 65 20 69 6e 20 77 68 | 69 63 68 20 63 61 6c 6c |ce in wh|ich call|
|00003240| 65 72 20 70 61 73 73 65 | 73 20 74 68 65 20 73 74 |er passe|s the st|
|00003250| 72 75 63 74 75 72 65 20 | 76 61 6c 75 65 20 61 64 |ructure |value ad|
|00003260| 64 72 65 73 73 2e 0d 20 | 20 20 41 63 74 75 61 6c |dress.. | Actual|
|00003270| 6c 79 2c 20 61 6c 6c 20 | 74 68 61 74 20 6d 61 74 |ly, all |that mat|
|00003280| 74 65 72 73 20 61 62 6f | 75 74 20 74 68 69 73 20 |ters abo|ut this |
|00003290| 76 61 6c 75 65 20 69 73 | 20 69 74 20 69 74 73 20 |value is| it its |
|000032a0| 72 74 78 5f 63 6f 64 65 | 3a 0d 20 20 20 4d 45 4d |rtx_code|:. MEM|
|000032b0| 20 6d 65 61 6e 73 20 70 | 75 73 68 20 74 68 65 20 | means p|ush the |
|000032c0| 76 61 6c 75 65 20 6f 6e | 20 74 68 65 20 73 74 61 |value on| the sta|
|000032d0| 63 6b 20 6c 69 6b 65 20 | 61 6e 20 61 72 67 75 6d |ck like |an argum|
|000032e0| 65 6e 74 2e 20 20 2a 2f | 0d 23 64 65 66 69 6e 65 |ent. */|.#define|
|000032f0| 20 53 54 52 55 43 54 5f | 56 41 4c 55 45 20 20 5c | STRUCT_|VALUE \|
|00003300| 0d 20 20 20 67 65 6e 5f | 72 74 78 20 28 4d 45 4d |. gen_|rtx (MEM|
|00003310| 2c 20 50 6d 6f 64 65 2c | 20 67 65 6e 5f 72 74 78 |, Pmode,| gen_rtx|
|00003320| 20 28 50 52 45 5f 44 45 | 43 2c 20 50 6d 6f 64 65 | (PRE_DE|C, Pmode|
|00003330| 2c 20 73 74 61 63 6b 5f | 70 6f 69 6e 74 65 72 5f |, stack_|pointer_|
|00003340| 72 74 78 29 29 0d 0d 2f | 2a 20 54 6f 20 62 65 20 |rtx))../|* To be |
|00003350| 4d 50 57 2d 63 6f 6d 70 | 61 74 69 62 6c 65 2c 20 |MPW-comp|atible, |
|00003360| 6d 75 6c 74 69 2d 77 6f | 72 64 20 73 74 72 75 63 |multi-wo|rd struc|
|00003370| 74 75 72 65 73 20 63 61 | 6e 6e 6f 74 20 6c 69 76 |tures ca|nnot liv|
|00003380| 65 20 69 6e 20 72 65 67 | 73 2e 20 2a 2f 0d 0d 23 |e in reg|s. */..#|
|00003390| 64 65 66 69 6e 65 20 52 | 45 54 55 52 4e 5f 49 4e |define R|ETURN_IN|
|000033a0| 5f 4d 45 4d 4f 52 59 28 | 54 59 50 45 29 20 5c 0d |_MEMORY(|TYPE) \.|
|000033b0| 20 20 28 28 54 52 45 45 | 5f 43 4f 44 45 20 28 54 | ((TREE|_CODE (T|
|000033c0| 59 50 45 29 20 3d 3d 20 | 52 45 43 4f 52 44 5f 54 |YPE) == |RECORD_T|
|000033d0| 59 50 45 20 7c 7c 20 54 | 52 45 45 5f 43 4f 44 45 |YPE || T|REE_CODE|
|000033e0| 20 28 54 59 50 45 29 20 | 3d 3d 20 55 4e 49 4f 4e | (TYPE) |== UNION|
|000033f0| 5f 54 59 50 45 29 20 26 | 26 20 5c 0d 20 20 20 28 |_TYPE) &|& \. (|
|00003400| 47 45 54 5f 4d 4f 44 45 | 5f 53 49 5a 45 20 28 54 |GET_MODE|_SIZE (T|
|00003410| 59 50 45 5f 4d 4f 44 45 | 20 28 54 59 50 45 29 29 |YPE_MODE| (TYPE))|
|00003420| 20 3e 20 55 4e 49 54 53 | 5f 50 45 52 5f 57 4f 52 | > UNITS|_PER_WOR|
|00003430| 44 29 29 0d 0d 2f 2a 20 | 50 61 64 20 73 68 6f 72 |D))../* |Pad shor|
|00003440| 74 73 20 61 6e 64 20 63 | 68 61 72 73 20 75 70 77 |ts and c|hars upw|
|00003450| 61 72 64 73 2c 20 62 75 | 74 20 6e 6f 62 6f 64 79 |ards, bu|t nobody|
|00003460| 20 65 6c 73 65 2e 20 2a | 2f 0d 0d 23 64 65 66 69 | else. *|/..#defi|
|00003470| 6e 65 20 46 55 4e 43 54 | 49 4f 4e 5f 41 52 47 5f |ne FUNCT|ION_ARG_|
|00003480| 50 41 44 44 49 4e 47 28 | 4d 4f 44 45 2c 53 49 5a |PADDING(|MODE,SIZ|
|00003490| 45 29 20 20 5c 0d 20 20 | 20 20 28 28 28 4d 4f 44 |E) \. | (((MOD|
|000034a0| 45 29 20 3d 3d 20 42 4c | 4b 6d 6f 64 65 09 09 09 |E) == BL|Kmode...|
|000034b0| 09 09 09 09 5c 0d 20 20 | 20 20 3f 20 28 47 45 54 |....\. | ? (GET|
|000034c0| 5f 43 4f 44 45 20 28 53 | 49 5a 45 29 20 3d 3d 20 |_CODE (S|IZE) == |
|000034d0| 43 4f 4e 53 54 5f 49 4e | 54 09 09 09 09 09 5c 0d |CONST_IN|T.....\.|
|000034e0| 20 20 20 20 20 20 20 26 | 26 20 49 4e 54 56 41 4c | &|& INTVAL|
|000034f0| 20 28 53 49 5a 45 29 20 | 3c 20 50 41 52 4d 5f 42 | (SIZE) |< PARM_B|
|00003500| 4f 55 4e 44 41 52 59 20 | 2f 20 42 49 54 53 5f 50 |OUNDARY |/ BITS_P|
|00003510| 45 52 5f 55 4e 49 54 29 | 09 09 5c 0d 20 20 20 20 |ER_UNIT)|..\. |
|00003520| 3a 20 47 45 54 5f 4d 4f | 44 45 5f 42 49 54 53 49 |: GET_MO|DE_BITSI|
|00003530| 5a 45 20 28 4d 4f 44 45 | 29 20 3c 20 50 41 52 4d |ZE (MODE|) < PARM|
|00003540| 5f 42 4f 55 4e 44 41 52 | 59 29 09 09 09 09 5c 0d |_BOUNDAR|Y)....\.|
|00003550| 20 20 20 3f 20 75 70 77 | 61 72 64 20 3a 20 6e 6f | ? upw|ard : no|
|00003560| 6e 65 29 0d 0d 0c 0d 2f | 2a 20 44 65 66 69 6e 65 |ne)..../|* Define|
|00003570| 20 74 68 65 20 63 6c 61 | 73 73 65 73 20 6f 66 20 | the cla|sses of |
|00003580| 72 65 67 69 73 74 65 72 | 73 20 66 6f 72 20 72 65 |register|s for re|
|00003590| 67 69 73 74 65 72 20 63 | 6f 6e 73 74 72 61 69 6e |gister c|onstrain|
|000035a0| 74 73 20 69 6e 20 74 68 | 65 0d 20 20 20 6d 61 63 |ts in th|e. mac|
|000035b0| 68 69 6e 65 20 64 65 73 | 63 72 69 70 74 69 6f 6e |hine des|cription|
|000035c0| 2e 20 20 41 6c 73 6f 20 | 64 65 66 69 6e 65 20 72 |. Also |define r|
|000035d0| 61 6e 67 65 73 20 6f 66 | 20 63 6f 6e 73 74 61 6e |anges of| constan|
|000035e0| 74 73 2e 0d 0d 20 20 20 | 4f 6e 65 20 6f 66 20 74 |ts... |One of t|
|000035f0| 68 65 20 63 6c 61 73 73 | 65 73 20 6d 75 73 74 20 |he class|es must |
|00003600| 61 6c 77 61 79 73 20 62 | 65 20 6e 61 6d 65 64 20 |always b|e named |
|00003610| 41 4c 4c 5f 52 45 47 53 | 20 61 6e 64 20 69 6e 63 |ALL_REGS| and inc|
|00003620| 6c 75 64 65 20 61 6c 6c | 20 68 61 72 64 20 72 65 |lude all| hard re|
|00003630| 67 73 2e 0d 20 20 20 49 | 66 20 74 68 65 72 65 20 |gs.. I|f there |
|00003640| 69 73 20 6d 6f 72 65 20 | 74 68 61 6e 20 6f 6e 65 |is more |than one|
|00003650| 20 63 6c 61 73 73 2c 20 | 61 6e 6f 74 68 65 72 20 | class, |another |
|00003660| 63 6c 61 73 73 20 6d 75 | 73 74 20 62 65 20 6e 61 |class mu|st be na|
|00003670| 6d 65 64 20 4e 4f 5f 52 | 45 47 53 0d 20 20 20 61 |med NO_R|EGS. a|
|00003680| 6e 64 20 63 6f 6e 74 61 | 69 6e 20 6e 6f 20 72 65 |nd conta|in no re|
|00003690| 67 69 73 74 65 72 73 2e | 0d 0d 20 20 20 54 68 65 |gisters.|.. The|
|000036a0| 20 6e 61 6d 65 20 47 45 | 4e 45 52 41 4c 5f 52 45 | name GE|NERAL_RE|
|000036b0| 47 53 20 6d 75 73 74 20 | 62 65 20 74 68 65 20 6e |GS must |be the n|
|000036c0| 61 6d 65 20 6f 66 20 61 | 20 63 6c 61 73 73 20 28 |ame of a| class (|
|000036d0| 6f 72 20 61 6e 20 61 6c | 69 61 73 20 66 6f 72 0d |or an al|ias for.|
|000036e0| 20 20 20 61 6e 6f 74 68 | 65 72 20 6e 61 6d 65 20 | anoth|er name |
|000036f0| 73 75 63 68 20 61 73 20 | 41 4c 4c 5f 52 45 47 53 |such as |ALL_REGS|
|00003700| 29 2e 20 20 54 68 69 73 | 20 69 73 20 74 68 65 20 |). This| is the |
|00003710| 63 6c 61 73 73 20 6f 66 | 20 72 65 67 69 73 74 65 |class of| registe|
|00003720| 72 73 0d 20 20 20 74 68 | 61 74 20 69 73 20 61 6c |rs. th|at is al|
|00003730| 6c 6f 77 65 64 20 62 79 | 20 22 67 22 20 6f 72 20 |lowed by| "g" or |
|00003740| 22 72 22 20 69 6e 20 61 | 20 72 65 67 69 73 74 65 |"r" in a| registe|
|00003750| 72 20 63 6f 6e 73 74 72 | 61 69 6e 74 2e 0d 20 20 |r constr|aint.. |
|00003760| 20 41 6c 73 6f 2c 20 72 | 65 67 69 73 74 65 72 73 | Also, r|egisters|
|00003770| 20 6f 75 74 73 69 64 65 | 20 74 68 69 73 20 63 6c | outside| this cl|
|00003780| 61 73 73 20 61 72 65 20 | 61 6c 6c 6f 63 61 74 65 |ass are |allocate|
|00003790| 64 20 6f 6e 6c 79 20 77 | 68 65 6e 0d 20 20 20 69 |d only w|hen. i|
|000037a0| 6e 73 74 72 75 63 74 69 | 6f 6e 73 20 65 78 70 72 |nstructi|ons expr|
|000037b0| 65 73 73 20 70 72 65 66 | 65 72 65 6e 63 65 73 20 |ess pref|erences |
|000037c0| 66 6f 72 20 74 68 65 6d | 2e 0d 0d 20 20 20 54 68 |for them|... Th|
|000037d0| 65 20 63 6c 61 73 73 65 | 73 20 6d 75 73 74 20 62 |e classe|s must b|
|000037e0| 65 20 6e 75 6d 62 65 72 | 65 64 20 69 6e 20 6e 6f |e number|ed in no|
|000037f0| 6e 64 65 63 72 65 61 73 | 69 6e 67 20 6f 72 64 65 |ndecreas|ing orde|
|00003800| 72 3b 20 74 68 61 74 20 | 69 73 2c 0d 20 20 20 61 |r; that |is,. a|
|00003810| 20 6c 61 72 67 65 72 2d | 6e 75 6d 62 65 72 65 64 | larger-|numbered|
|00003820| 20 63 6c 61 73 73 20 6d | 75 73 74 20 6e 65 76 65 | class m|ust neve|
|00003830| 72 20 62 65 20 63 6f 6e | 74 61 69 6e 65 64 20 63 |r be con|tained c|
|00003840| 6f 6d 70 6c 65 74 65 6c | 79 0d 20 20 20 69 6e 20 |ompletel|y. in |
|00003850| 61 20 73 6d 61 6c 6c 65 | 72 2d 6e 75 6d 62 65 72 |a smalle|r-number|
|00003860| 65 64 20 63 6c 61 73 73 | 2e 0d 0d 20 20 20 46 6f |ed class|... Fo|
|00003870| 72 20 61 6e 79 20 74 77 | 6f 20 63 6c 61 73 73 65 |r any tw|o classe|
|00003880| 73 2c 20 69 74 20 69 73 | 20 76 65 72 79 20 64 65 |s, it is| very de|
|00003890| 73 69 72 61 62 6c 65 20 | 74 68 61 74 20 74 68 65 |sirable |that the|
|000038a0| 72 65 20 62 65 20 61 6e | 6f 74 68 65 72 0d 20 20 |re be an|other. |
|000038b0| 20 63 6c 61 73 73 20 74 | 68 61 74 20 72 65 70 72 | class t|hat repr|
|000038c0| 65 73 65 6e 74 73 20 74 | 68 65 69 72 20 75 6e 69 |esents t|heir uni|
|000038d0| 6f 6e 2e 20 20 2a 2f 0d | 0d 2f 2a 20 54 68 65 20 |on. */.|./* The |
|000038e0| 36 38 30 30 30 20 68 61 | 73 20 74 68 72 65 65 20 |68000 ha|s three |
|000038f0| 6b 69 6e 64 73 20 6f 66 | 20 72 65 67 69 73 74 65 |kinds of| registe|
|00003900| 72 73 2c 20 73 6f 20 65 | 69 67 68 74 20 63 6c 61 |rs, so e|ight cla|
|00003910| 73 73 65 73 20 77 6f 75 | 6c 64 20 62 65 0d 20 20 |sses wou|ld be. |
|00003920| 20 61 20 63 6f 6d 70 6c | 65 74 65 20 73 65 74 2e | a compl|ete set.|
|00003930| 20 20 4f 6e 65 20 6f 66 | 20 74 68 65 6d 20 28 61 | One of| them (a|
|00003940| 64 64 72 5f 6f 72 5f 66 | 70 29 20 69 73 20 6e 6f |ddr_or_f|p) is no|
|00003950| 74 20 6e 65 65 64 65 64 | 2e 20 20 2a 2f 0d 0d 65 |t needed|. */..e|
|00003960| 6e 75 6d 20 72 65 67 5f | 63 6c 61 73 73 20 7b 0d |num reg_|class {.|
|00003970| 20 20 4e 4f 5f 52 45 47 | 53 2c 20 46 50 5f 52 45 | NO_REG|S, FP_RE|
|00003980| 47 53 2c 0d 20 20 44 41 | 54 41 5f 52 45 47 53 2c |GS,. DA|TA_REGS,|
|00003990| 20 44 41 54 41 5f 4f 52 | 5f 46 50 5f 52 45 47 53 | DATA_OR|_FP_REGS|
|000039a0| 2c 0d 20 20 41 44 44 52 | 5f 52 45 47 53 2c 20 47 |,. ADDR|_REGS, G|
|000039b0| 45 4e 45 52 41 4c 5f 52 | 45 47 53 2c 0d 20 20 41 |ENERAL_R|EGS,. A|
|000039c0| 4c 4c 5f 52 45 47 53 2c | 0d 20 20 4c 49 4d 5f 52 |LL_REGS,|. LIM_R|
|000039d0| 45 47 5f 43 4c 41 53 53 | 45 53 0d 23 69 66 64 65 |EG_CLASS|ES.#ifde|
|000039e0| 66 20 4d 50 57 5f 43 33 | 31 0d 20 20 2c 20 72 65 |f MPW_C3|1. , re|
|000039f0| 67 5f 63 6c 61 73 73 5f | 69 6e 74 69 66 69 65 72 |g_class_|intifier|
|00003a00| 20 3d 20 31 30 30 30 30 | 30 30 0d 23 65 6e 64 69 | = 10000|00.#endi|
|00003a10| 66 20 2f 2a 20 4d 50 57 | 5f 43 33 31 20 2a 2f 0d |f /* MPW|_C31 */.|
|00003a20| 7d 3b 0d 0d 23 64 65 66 | 69 6e 65 20 4e 5f 52 45 |};..#def|ine N_RE|
|00003a30| 47 5f 43 4c 41 53 53 45 | 53 20 28 69 6e 74 29 20 |G_CLASSE|S (int) |
|00003a40| 4c 49 4d 5f 52 45 47 5f | 43 4c 41 53 53 45 53 0d |LIM_REG_|CLASSES.|
|00003a50| 0d 2f 2a 20 47 69 76 65 | 20 6e 61 6d 65 73 20 6f |./* Give| names o|
|00003a60| 66 20 72 65 67 69 73 74 | 65 72 20 63 6c 61 73 73 |f regist|er class|
|00003a70| 65 73 20 61 73 20 73 74 | 72 69 6e 67 73 20 66 6f |es as st|rings fo|
|00003a80| 72 20 64 75 6d 70 20 66 | 69 6c 65 2e 20 20 20 2a |r dump f|ile. *|
|00003a90| 2f 0d 0d 23 64 65 66 69 | 6e 65 20 52 45 47 5f 43 |/..#defi|ne REG_C|
|00003aa0| 4c 41 53 53 5f 4e 41 4d | 45 53 20 5c 0d 20 7b 20 |LASS_NAM|ES \. { |
|00003ab0| 22 4e 4f 5f 52 45 47 53 | 22 2c 20 22 46 50 5f 52 |"NO_REGS|", "FP_R|
|00003ac0| 45 47 53 22 2c 20 20 5c | 0d 20 20 20 22 44 41 54 |EGS", \|. "DAT|
|00003ad0| 41 5f 52 45 47 53 22 2c | 20 22 44 41 54 41 5f 4f |A_REGS",| "DATA_O|
|00003ae0| 52 5f 46 50 5f 52 45 47 | 53 22 2c 20 20 5c 0d 20 |R_FP_REG|S", \. |
|00003af0| 20 20 22 41 44 44 52 5f | 52 45 47 53 22 2c 20 22 | "ADDR_|REGS", "|
|00003b00| 47 45 4e 45 52 41 4c 5f | 52 45 47 53 22 2c 20 20 |GENERAL_|REGS", |
|00003b10| 5c 0d 20 20 20 22 41 4c | 4c 5f 52 45 47 53 22 20 |\. "AL|L_REGS" |
|00003b20| 7d 0d 0d 2f 2a 20 44 65 | 66 69 6e 65 20 77 68 69 |}../* De|fine whi|
|00003b30| 63 68 20 72 65 67 69 73 | 74 65 72 73 20 66 69 74 |ch regis|ters fit|
|00003b40| 20 69 6e 20 77 68 69 63 | 68 20 63 6c 61 73 73 65 | in whic|h classe|
|00003b50| 73 2e 0d 20 20 20 54 68 | 69 73 20 69 73 20 61 6e |s.. Th|is is an|
|00003b60| 20 69 6e 69 74 69 61 6c | 69 7a 65 72 20 66 6f 72 | initial|izer for|
|00003b70| 20 61 20 76 65 63 74 6f | 72 20 6f 66 20 48 41 52 | a vecto|r of HAR|
|00003b80| 44 5f 52 45 47 5f 53 45 | 54 0d 20 20 20 6f 66 20 |D_REG_SE|T. of |
|00003b90| 6c 65 6e 67 74 68 20 4e | 5f 52 45 47 5f 43 4c 41 |length N|_REG_CLA|
|00003ba0| 53 53 45 53 2e 20 20 2a | 2f 0d 0d 23 64 65 66 69 |SSES. *|/..#defi|
|00003bb0| 6e 65 20 52 45 47 5f 43 | 4c 41 53 53 5f 43 4f 4e |ne REG_C|LASS_CON|
|00003bc0| 54 45 4e 54 53 20 5c 0d | 7b 09 09 09 09 09 5c 0d |TENTS \.|{.....\.|
|00003bd0| 20 30 2c 09 09 2f 2a 20 | 4e 4f 5f 52 45 47 53 20 | 0,../* |NO_REGS |
|00003be0| 2a 2f 09 09 5c 0d 20 30 | 78 66 66 30 30 30 30 2c |*/..\. 0|xff0000,|
|00003bf0| 09 2f 2a 20 46 50 5f 52 | 45 47 53 20 2a 2f 09 09 |./* FP_R|EGS */..|
|00003c00| 5c 0d 20 30 78 30 30 30 | 30 66 66 2c 09 2f 2a 20 |\. 0x000|0ff,./* |
|00003c10| 44 41 54 41 5f 52 45 47 | 53 20 2a 2f 09 09 5c 0d |DATA_REG|S */..\.|
|00003c20| 20 30 78 66 66 30 30 66 | 66 2c 09 2f 2a 20 44 41 | 0xff00f|f,./* DA|
|00003c30| 54 41 5f 4f 52 5f 46 50 | 5f 52 45 47 53 20 2a 2f |TA_OR_FP|_REGS */|
|00003c40| 09 5c 0d 20 30 78 30 30 | 66 66 30 30 2c 09 2f 2a |.\. 0x00|ff00,./*|
|00003c50| 20 41 44 44 52 5f 52 45 | 47 53 20 2a 2f 09 09 5c | ADDR_RE|GS */..\|
|00003c60| 0d 20 30 78 30 30 66 66 | 66 66 2c 09 2f 2a 20 47 |. 0x00ff|ff,./* G|
|00003c70| 45 4e 45 52 41 4c 5f 52 | 45 47 53 20 2a 2f 09 5c |ENERAL_R|EGS */.\|
|00003c80| 0d 20 30 78 66 66 66 66 | 66 66 2c 09 2f 2a 20 41 |. 0xffff|ff,./* A|
|00003c90| 4c 4c 5f 52 45 47 53 20 | 2a 2f 09 09 5c 0d 7d 0d |LL_REGS |*/..\.}.|
|00003ca0| 0d 2f 2a 20 54 68 65 20 | 73 61 6d 65 20 69 6e 66 |./* The |same inf|
|00003cb0| 6f 72 6d 61 74 69 6f 6e | 2c 20 69 6e 76 65 72 74 |ormation|, invert|
|00003cc0| 65 64 3a 0d 20 20 20 52 | 65 74 75 72 6e 20 74 68 |ed:. R|eturn th|
|00003cd0| 65 20 63 6c 61 73 73 20 | 6e 75 6d 62 65 72 20 6f |e class |number o|
|00003ce0| 66 20 74 68 65 20 73 6d | 61 6c 6c 65 73 74 20 63 |f the sm|allest c|
|00003cf0| 6c 61 73 73 20 63 6f 6e | 74 61 69 6e 69 6e 67 0d |lass con|taining.|
|00003d00| 20 20 20 72 65 67 20 6e | 75 6d 62 65 72 20 52 45 | reg n|umber RE|
|00003d10| 47 4e 4f 2e 20 20 54 68 | 69 73 20 63 6f 75 6c 64 |GNO. Th|is could|
|00003d20| 20 62 65 20 61 20 63 6f | 6e 64 69 74 69 6f 6e 61 | be a co|nditiona|
|00003d30| 6c 20 65 78 70 72 65 73 | 73 69 6f 6e 0d 20 20 20 |l expres|sion. |
|00003d40| 6f 72 20 63 6f 75 6c 64 | 20 69 6e 64 65 78 20 61 |or could| index a|
|00003d50| 6e 20 61 72 72 61 79 2e | 20 20 2a 2f 0d 0d 65 78 |n array.| */..ex|
|00003d60| 74 65 72 6e 20 65 6e 75 | 6d 20 72 65 67 5f 63 6c |tern enu|m reg_cl|
|00003d70| 61 73 73 20 72 65 67 6e | 6f 5f 72 65 67 5f 63 6c |ass regn|o_reg_cl|
|00003d80| 61 73 73 5b 5d 3b 0d 23 | 64 65 66 69 6e 65 20 52 |ass[];.#|define R|
|00003d90| 45 47 4e 4f 5f 52 45 47 | 5f 43 4c 41 53 53 28 52 |EGNO_REG|_CLASS(R|
|00003da0| 45 47 4e 4f 29 20 28 72 | 65 67 6e 6f 5f 72 65 67 |EGNO) (r|egno_reg|
|00003db0| 5f 63 6c 61 73 73 5b 28 | 52 45 47 4e 4f 29 3e 3e |_class[(|REGNO)>>|
|00003dc0| 33 5d 29 0d 0d 2f 2a 20 | 54 68 65 20 63 6c 61 73 |3])../* |The clas|
|00003dd0| 73 20 76 61 6c 75 65 20 | 66 6f 72 20 69 6e 64 65 |s value |for inde|
|00003de0| 78 20 72 65 67 69 73 74 | 65 72 73 2c 20 61 6e 64 |x regist|ers, and|
|00003df0| 20 74 68 65 20 6f 6e 65 | 20 66 6f 72 20 62 61 73 | the one| for bas|
|00003e00| 65 20 72 65 67 73 2e 20 | 20 2a 2f 0d 0d 23 64 65 |e regs. | */..#de|
|00003e10| 66 69 6e 65 20 49 4e 44 | 45 58 5f 52 45 47 5f 43 |fine IND|EX_REG_C|
|00003e20| 4c 41 53 53 20 47 45 4e | 45 52 41 4c 5f 52 45 47 |LASS GEN|ERAL_REG|
|00003e30| 53 0d 23 64 65 66 69 6e | 65 20 42 41 53 45 5f 52 |S.#defin|e BASE_R|
|00003e40| 45 47 5f 43 4c 41 53 53 | 20 41 44 44 52 5f 52 45 |EG_CLASS| ADDR_RE|
|00003e50| 47 53 0d 0d 2f 2a 20 47 | 65 74 20 72 65 67 5f 63 |GS../* G|et reg_c|
|00003e60| 6c 61 73 73 20 66 72 6f | 6d 20 61 20 6c 65 74 74 |lass fro|m a lett|
|00003e70| 65 72 20 73 75 63 68 20 | 61 73 20 61 70 70 65 61 |er such |as appea|
|00003e80| 72 73 20 69 6e 20 74 68 | 65 20 6d 61 63 68 69 6e |rs in th|e machin|
|00003e90| 65 20 64 65 73 63 72 69 | 70 74 69 6f 6e 2e 0d 20 |e descri|ption.. |
|00003ea0| 20 20 57 65 20 64 6f 20 | 61 20 74 72 69 63 6b 20 | We do |a trick |
|00003eb0| 68 65 72 65 20 74 6f 20 | 6d 6f 64 69 66 79 20 74 |here to |modify t|
|00003ec0| 68 65 20 65 66 66 65 63 | 74 69 76 65 20 63 6f 6e |he effec|tive con|
|00003ed0| 73 74 72 61 69 6e 74 73 | 20 6f 6e 20 74 68 65 0d |straints| on the.|
|00003ee0| 20 20 20 6d 61 63 68 69 | 6e 65 20 64 65 73 63 72 | machi|ne descr|
|00003ef0| 69 70 74 69 6f 6e 3b 20 | 77 65 20 7a 6f 72 63 68 |iption; |we zorch|
|00003f00| 20 74 68 65 20 63 6f 6e | 73 74 72 61 69 6e 74 20 | the con|straint |
|00003f10| 6c 65 74 74 65 72 73 20 | 74 68 61 74 20 61 72 65 |letters |that are|
|00003f20| 6e 27 74 0d 20 20 20 61 | 70 70 72 6f 70 72 69 61 |n't. a|ppropria|
|00003f30| 74 65 20 66 6f 72 20 61 | 20 73 70 65 63 69 66 69 |te for a| specifi|
|00003f40| 63 20 74 61 72 67 65 74 | 2e 20 20 54 68 69 73 20 |c target|. This |
|00003f50| 61 6c 6c 6f 77 73 20 75 | 73 20 74 6f 20 67 75 61 |allows u|s to gua|
|00003f60| 72 72 61 6e 74 65 65 0d | 20 20 20 74 68 61 74 20 |rrantee.| that |
|00003f70| 61 20 73 70 65 63 69 66 | 69 63 20 6b 69 6e 64 20 |a specif|ic kind |
|00003f80| 6f 66 20 72 65 67 69 73 | 74 65 72 20 77 69 6c 6c |of regis|ter will|
|00003f90| 20 6e 6f 74 20 62 65 20 | 75 73 65 64 20 66 6f 72 | not be |used for|
|00003fa0| 20 61 20 67 69 76 65 6e | 20 74 61 67 65 74 0d 20 | a given| taget. |
|00003fb0| 20 20 77 69 74 68 6f 75 | 74 20 66 69 64 64 6c 69 | withou|t fiddli|
|00003fc0| 6e 67 20 77 69 74 68 20 | 74 68 65 20 72 65 67 69 |ng with |the regi|
|00003fd0| 73 74 65 72 20 63 6c 61 | 73 73 65 73 20 61 62 6f |ster cla|sses abo|
|00003fe0| 76 65 2e 20 2a 2f 0d 0d | 23 64 65 66 69 6e 65 20 |ve. */..|#define |
|00003ff0| 52 45 47 5f 43 4c 41 53 | 53 5f 46 52 4f 4d 5f 4c |REG_CLAS|S_FROM_L|
|00004000| 45 54 54 45 52 28 43 29 | 20 5c 0d 20 20 28 28 43 |ETTER(C)| \. ((C|
|00004010| 29 20 3d 3d 20 27 61 27 | 20 3f 20 41 44 44 52 5f |) == 'a'| ? ADDR_|
|00004020| 52 45 47 53 20 3a 09 09 | 09 5c 0d 20 20 20 28 28 |REGS :..|.\. ((|
|00004030| 43 29 20 3d 3d 20 27 64 | 27 20 3f 20 44 41 54 41 |C) == 'd|' ? DATA|
|00004040| 5f 52 45 47 53 20 3a 09 | 09 09 5c 0d 20 20 20 20 |_REGS :.|..\. |
|00004050| 28 28 43 29 20 3d 3d 20 | 27 66 27 20 3f 20 28 54 |((C) == |'f' ? (T|
|00004060| 41 52 47 45 54 5f 36 38 | 38 38 31 20 3f 20 46 50 |ARGET_68|881 ? FP|
|00004070| 5f 52 45 47 53 20 3a 20 | 4e 4f 5f 52 45 47 53 29 |_REGS : |NO_REGS)|
|00004080| 20 3a 20 20 5c 0d 20 20 | 20 20 20 4e 4f 5f 52 45 | : \. | NO_RE|
|00004090| 47 53 29 29 29 0d 0d 2f | 2a 20 54 68 65 20 6c 65 |GS)))../|* The le|
|000040a0| 74 74 65 72 73 20 49 2c | 20 4a 2c 20 4b 2c 20 4c |tters I,| J, K, L|
|000040b0| 20 61 6e 64 20 4d 20 69 | 6e 20 61 20 72 65 67 69 | and M i|n a regi|
|000040c0| 73 74 65 72 20 63 6f 6e | 73 74 72 61 69 6e 74 20 |ster con|straint |
|000040d0| 73 74 72 69 6e 67 0d 20 | 20 20 63 61 6e 20 62 65 |string. | can be|
|000040e0| 20 75 73 65 64 20 74 6f | 20 73 74 61 6e 64 20 66 | used to| stand f|
|000040f0| 6f 72 20 70 61 72 74 69 | 63 75 6c 61 72 20 72 61 |or parti|cular ra|
|00004100| 6e 67 65 73 20 6f 66 20 | 69 6d 6d 65 64 69 61 74 |nges of |immediat|
|00004110| 65 20 6f 70 65 72 61 6e | 64 73 2e 0d 20 20 20 54 |e operan|ds.. T|
|00004120| 68 69 73 20 6d 61 63 72 | 6f 20 64 65 66 69 6e 65 |his macr|o define|
|00004130| 73 20 77 68 61 74 20 74 | 68 65 20 72 61 6e 67 65 |s what t|he range|
|00004140| 73 20 61 72 65 2e 0d 20 | 20 20 43 20 69 73 20 74 |s are.. | C is t|
|00004150| 68 65 20 6c 65 74 74 65 | 72 2c 20 61 6e 64 20 56 |he lette|r, and V|
|00004160| 41 4c 55 45 20 69 73 20 | 61 20 63 6f 6e 73 74 61 |ALUE is |a consta|
|00004170| 6e 74 20 76 61 6c 75 65 | 2e 0d 20 20 20 52 65 74 |nt value|.. Ret|
|00004180| 75 72 6e 20 31 20 69 66 | 20 56 41 4c 55 45 20 69 |urn 1 if| VALUE i|
|00004190| 73 20 69 6e 20 74 68 65 | 20 72 61 6e 67 65 20 73 |s in the| range s|
|000041a0| 70 65 63 69 66 69 65 64 | 20 62 79 20 43 2e 0d 0d |pecified| by C...|
|000041b0| 20 20 20 46 6f 72 20 74 | 68 65 20 36 38 30 30 30 | For t|he 68000|
|000041c0| 2c 20 60 49 27 20 69 73 | 20 75 73 65 64 20 66 6f |, `I' is| used fo|
|000041d0| 72 20 74 68 65 20 72 61 | 6e 67 65 20 31 20 74 6f |r the ra|nge 1 to|
|000041e0| 20 38 0d 20 20 20 61 6c | 6c 6f 77 65 64 20 61 73 | 8. al|lowed as|
|000041f0| 20 69 6d 6d 65 64 69 61 | 74 65 20 73 68 69 66 74 | immedia|te shift|
|00004200| 20 63 6f 75 6e 74 73 20 | 61 6e 64 20 69 6e 20 61 | counts |and in a|
|00004210| 64 64 71 2e 0d 20 20 20 | 60 4a 27 20 69 73 20 75 |ddq.. |`J' is u|
|00004220| 73 65 64 20 66 6f 72 20 | 74 68 65 20 72 61 6e 67 |sed for |the rang|
|00004230| 65 20 6f 66 20 73 69 67 | 6e 65 64 20 6e 75 6d 62 |e of sig|ned numb|
|00004240| 65 72 73 20 74 68 61 74 | 20 66 69 74 20 69 6e 20 |ers that| fit in |
|00004250| 31 36 20 62 69 74 73 2e | 0d 20 20 20 60 4b 27 20 |16 bits.|. `K' |
|00004260| 69 73 20 66 6f 72 20 6e | 75 6d 62 65 72 73 20 74 |is for n|umbers t|
|00004270| 68 61 74 20 6d 6f 76 65 | 71 20 63 61 6e 27 74 20 |hat move|q can't |
|00004280| 68 61 6e 64 6c 65 2e 0d | 20 20 20 60 4c 27 20 69 |handle..| `L' i|
|00004290| 73 20 66 6f 72 20 72 61 | 6e 67 65 20 2d 38 20 74 |s for ra|nge -8 t|
|000042a0| 6f 20 2d 31 2c 20 72 61 | 6e 67 65 20 6f 66 20 76 |o -1, ra|nge of v|
|000042b0| 61 6c 75 65 73 20 74 68 | 61 74 20 63 61 6e 20 62 |alues th|at can b|
|000042c0| 65 20 61 64 64 65 64 20 | 77 69 74 68 20 73 75 62 |e added |with sub|
|000042d0| 71 2e 20 20 2a 2f 0d 0d | 23 64 65 66 69 6e 65 20 |q. */..|#define |
|000042e0| 43 4f 4e 53 54 5f 4f 4b | 5f 46 4f 52 5f 4c 45 54 |CONST_OK|_FOR_LET|
|000042f0| 54 45 52 5f 50 28 56 41 | 4c 55 45 2c 20 43 29 20 |TER_P(VA|LUE, C) |
|00004300| 20 5c 0d 20 20 28 28 43 | 29 20 3d 3d 20 27 49 27 | \. ((C|) == 'I'|
|00004310| 20 3f 20 28 56 41 4c 55 | 45 29 20 3e 20 30 20 26 | ? (VALU|E) > 0 &|
|00004320| 26 20 28 56 41 4c 55 45 | 29 20 3c 3d 20 38 20 3a |& (VALUE|) <= 8 :|
|00004330| 20 20 20 20 5c 0d 20 20 | 20 28 43 29 20 3d 3d 20 | \. | (C) == |
|00004340| 27 4a 27 20 3f 20 28 56 | 41 4c 55 45 29 20 3e 3d |'J' ? (V|ALUE) >=|
|00004350| 20 2d 30 78 38 30 30 30 | 20 26 26 20 28 56 41 4c | -0x8000| && (VAL|
|00004360| 55 45 29 20 3c 3d 20 30 | 78 37 46 46 46 20 3a 09 |UE) <= 0|x7FFF :.|
|00004370| 5c 0d 20 20 20 28 43 29 | 20 3d 3d 20 27 4b 27 20 |\. (C)| == 'K' |
|00004380| 3f 20 28 56 41 4c 55 45 | 29 20 3c 20 2d 30 78 38 |? (VALUE|) < -0x8|
|00004390| 30 20 7c 7c 20 28 56 41 | 4c 55 45 29 20 3e 3d 20 |0 || (VA|LUE) >= |
|000043a0| 30 78 38 30 20 3a 09 5c | 0d 20 20 20 28 43 29 20 |0x80 :.\|. (C) |
|000043b0| 3d 3d 20 27 4c 27 20 3f | 20 28 56 41 4c 55 45 29 |== 'L' ?| (VALUE)|
|000043c0| 20 3c 20 30 20 26 26 20 | 28 56 41 4c 55 45 29 20 | < 0 && |(VALUE) |
|000043d0| 3e 3d 20 2d 38 20 3a 20 | 20 5c 0d 20 20 20 28 43 |>= -8 : | \. (C|
|000043e0| 29 20 3d 3d 20 27 4d 27 | 20 3f 20 31 20 3a 20 30 |) == 'M'| ? 1 : 0|
|000043f0| 29 0d 0d 2f 2a 0d 20 2a | 20 41 20 73 6d 61 6c 6c |)../*. *| A small|
|00004400| 20 62 69 74 20 6f 66 20 | 65 78 70 6c 61 6e 61 74 | bit of |explanat|
|00004410| 69 6f 6e 3a 0d 20 2a 20 | 22 47 22 20 64 65 66 69 |ion:. * |"G" defi|
|00004420| 6e 65 73 20 61 6c 6c 20 | 6f 66 20 74 68 65 20 66 |nes all |of the f|
|00004430| 6c 6f 61 74 69 6e 67 20 | 63 6f 6e 73 74 61 6e 74 |loating |constant|
|00004440| 73 20 74 68 61 74 20 61 | 72 65 20 2a 4e 4f 54 2a |s that a|re *NOT*|
|00004450| 20 36 38 38 38 31 0d 20 | 2a 20 63 6f 6e 73 74 61 | 68881. |* consta|
|00004460| 6e 74 73 2e 20 20 74 68 | 69 73 20 69 73 20 73 6f |nts. th|is is so|
|00004470| 20 36 38 38 38 31 20 63 | 6f 6e 73 74 61 6e 74 73 | 68881 c|onstants|
|00004480| 20 67 65 74 20 72 65 6c | 6f 61 64 65 64 20 61 6e | get rel|oaded an|
|00004490| 64 20 74 68 65 0d 20 2a | 20 66 70 6d 6f 76 65 63 |d the. *| fpmovec|
|000044a0| 72 20 69 73 20 75 73 65 | 64 2e 0d 20 2a 2f 0d 23 |r is use|d.. */.#|
|000044b0| 64 65 66 69 6e 65 20 43 | 4f 4e 53 54 5f 44 4f 55 |define C|ONST_DOU|
|000044c0| 42 4c 45 5f 4f 4b 5f 46 | 4f 52 5f 4c 45 54 54 45 |BLE_OK_F|OR_LETTE|
|000044d0| 52 5f 50 28 56 41 4c 55 | 45 2c 20 43 29 20 20 5c |R_P(VALU|E, C) \|
|000044e0| 0d 20 20 28 28 43 29 20 | 3d 3d 20 27 47 27 20 3f |. ((C) |== 'G' ?|
|000044f0| 20 21 20 28 54 41 52 47 | 45 54 5f 36 38 38 38 31 | ! (TARG|ET_68881|
|00004500| 20 26 26 20 73 74 61 6e | 64 61 72 64 5f 36 38 38 | && stan|dard_688|
|00004510| 38 31 5f 63 6f 6e 73 74 | 61 6e 74 5f 70 20 28 56 |81_const|ant_p (V|
|00004520| 41 4c 55 45 29 29 20 3a | 20 30 29 0d 0d 2f 2a 20 |ALUE)) :| 0)../* |
|00004530| 47 69 76 65 6e 20 61 6e | 20 72 74 78 20 58 20 62 |Given an| rtx X b|
|00004540| 65 69 6e 67 20 72 65 6c | 6f 61 64 65 64 20 69 6e |eing rel|oaded in|
|00004550| 74 6f 20 61 20 72 65 67 | 20 72 65 71 75 69 72 65 |to a reg| require|
|00004560| 64 20 74 6f 20 62 65 0d | 20 20 20 69 6e 20 63 6c |d to be.| in cl|
|00004570| 61 73 73 20 43 4c 41 53 | 53 2c 20 72 65 74 75 72 |ass CLAS|S, retur|
|00004580| 6e 20 74 68 65 20 63 6c | 61 73 73 20 6f 66 20 72 |n the cl|ass of r|
|00004590| 65 67 20 74 6f 20 61 63 | 74 75 61 6c 6c 79 20 75 |eg to ac|tually u|
|000045a0| 73 65 2e 0d 20 20 20 49 | 6e 20 67 65 6e 65 72 61 |se.. I|n genera|
|000045b0| 6c 20 74 68 69 73 20 69 | 73 20 6a 75 73 74 20 43 |l this i|s just C|
|000045c0| 4c 41 53 53 3b 20 62 75 | 74 20 6f 6e 20 73 6f 6d |LASS; bu|t on som|
|000045d0| 65 20 6d 61 63 68 69 6e | 65 73 0d 20 20 20 69 6e |e machin|es. in|
|000045e0| 20 73 6f 6d 65 20 63 61 | 73 65 73 20 69 74 20 69 | some ca|ses it i|
|000045f0| 73 20 70 72 65 66 65 72 | 61 62 6c 65 20 74 6f 20 |s prefer|able to |
|00004600| 75 73 65 20 61 20 6d 6f | 72 65 20 72 65 73 74 72 |use a mo|re restr|
|00004610| 69 63 74 69 76 65 20 63 | 6c 61 73 73 2e 0d 20 20 |ictive c|lass.. |
|00004620| 20 4f 6e 20 74 68 65 20 | 36 38 30 30 30 20 73 65 | On the |68000 se|
|00004630| 72 69 65 73 2c 20 75 73 | 65 20 61 20 64 61 74 61 |ries, us|e a data|
|00004640| 20 72 65 67 20 69 66 20 | 70 6f 73 73 69 62 6c 65 | reg if |possible|
|00004650| 20 77 68 65 6e 20 74 68 | 65 0d 20 20 20 76 61 6c | when th|e. val|
|00004660| 75 65 20 69 73 20 61 20 | 63 6f 6e 73 74 61 6e 74 |ue is a |constant|
|00004670| 20 69 6e 20 74 68 65 20 | 72 61 6e 67 65 20 77 68 | in the |range wh|
|00004680| 65 72 65 20 6d 6f 76 65 | 71 20 63 6f 75 6c 64 20 |ere move|q could |
|00004690| 62 65 20 75 73 65 64 0d | 20 20 20 61 6e 64 20 77 |be used.| and w|
|000046a0| 65 20 65 6e 73 75 72 65 | 20 74 68 61 74 20 51 49 |e ensure| that QI|
|000046b0| 6d 6f 64 65 73 20 61 72 | 65 20 72 65 6c 6f 61 64 |modes ar|e reload|
|000046c0| 65 64 20 69 6e 74 6f 20 | 64 61 74 61 20 72 65 67 |ed into |data reg|
|000046d0| 73 2e 20 20 2a 2f 0d 23 | 64 65 66 69 6e 65 20 50 |s. */.#|define P|
|000046e0| 52 45 46 45 52 52 45 44 | 5f 52 45 4c 4f 41 44 5f |REFERRED|_RELOAD_|
|000046f0| 43 4c 41 53 53 28 58 2c | 43 4c 41 53 53 29 20 20 |CLASS(X,|CLASS) |
|00004700| 5c 0d 20 20 28 28 47 45 | 54 5f 43 4f 44 45 20 28 |\. ((GE|T_CODE (|
|00004710| 58 29 20 3d 3d 20 43 4f | 4e 53 54 5f 49 4e 54 09 |X) == CO|NST_INT.|
|00004720| 09 09 5c 0d 20 20 20 20 | 26 26 20 28 75 6e 73 69 |..\. |&& (unsi|
|00004730| 67 6e 65 64 29 20 28 49 | 4e 54 56 41 4c 20 28 58 |gned) (I|NTVAL (X|
|00004740| 29 20 2b 20 30 78 38 30 | 29 20 3c 20 30 78 31 30 |) + 0x80|) < 0x10|
|00004750| 30 09 5c 0d 20 20 20 20 | 26 26 20 28 43 4c 41 53 |0.\. |&& (CLAS|
|00004760| 53 29 20 21 3d 20 41 44 | 44 52 5f 52 45 47 53 29 |S) != AD|DR_REGS)|
|00004770| 09 09 09 5c 0d 20 20 20 | 3f 20 44 41 54 41 5f 52 |...\. |? DATA_R|
|00004780| 45 47 53 09 09 09 09 09 | 5c 0d 20 20 20 3a 20 47 |EGS.....|\. : G|
|00004790| 45 54 5f 4d 4f 44 45 20 | 28 58 29 20 3d 3d 20 51 |ET_MODE |(X) == Q|
|000047a0| 49 6d 6f 64 65 09 09 09 | 5c 0d 20 20 20 3f 20 44 |Imode...|\. ? D|
|000047b0| 41 54 41 5f 52 45 47 53 | 09 09 09 09 09 5c 0d 20 |ATA_REGS|.....\. |
|000047c0| 20 20 3a 20 28 43 4c 41 | 53 53 29 29 0d 0d 2f 2a | : (CLA|SS))../*|
|000047d0| 20 52 65 74 75 72 6e 20 | 74 68 65 20 6d 61 78 69 | Return |the maxi|
|000047e0| 6d 75 6d 20 6e 75 6d 62 | 65 72 20 6f 66 20 63 6f |mum numb|er of co|
|000047f0| 6e 73 65 63 75 74 69 76 | 65 20 72 65 67 69 73 74 |nsecutiv|e regist|
|00004800| 65 72 73 0d 20 20 20 6e | 65 65 64 65 64 20 74 6f |ers. n|eeded to|
|00004810| 20 72 65 70 72 65 73 65 | 6e 74 20 6d 6f 64 65 20 | represe|nt mode |
|00004820| 4d 4f 44 45 20 69 6e 20 | 61 20 72 65 67 69 73 74 |MODE in |a regist|
|00004830| 65 72 20 6f 66 20 63 6c | 61 73 73 20 43 4c 41 53 |er of cl|ass CLAS|
|00004840| 53 2e 20 20 2a 2f 0d 2f | 2a 20 4f 6e 20 74 68 65 |S. */./|* On the|
|00004850| 20 36 38 30 30 30 2c 20 | 74 68 69 73 20 69 73 20 | 68000, |this is |
|00004860| 74 68 65 20 73 69 7a 65 | 20 6f 66 20 4d 4f 44 45 |the size| of MODE|
|00004870| 20 69 6e 20 77 6f 72 64 | 73 2c 0d 20 20 20 65 78 | in word|s,. ex|
|00004880| 63 65 70 74 20 69 6e 20 | 74 68 65 20 46 50 20 72 |cept in |the FP r|
|00004890| 65 67 73 2c 20 77 68 65 | 72 65 20 61 20 73 69 6e |egs, whe|re a sin|
|000048a0| 67 6c 65 20 72 65 67 20 | 69 73 20 61 6c 77 61 79 |gle reg |is alway|
|000048b0| 73 20 65 6e 6f 75 67 68 | 2e 20 20 2a 2f 0d 23 64 |s enough|. */.#d|
|000048c0| 65 66 69 6e 65 20 43 4c | 41 53 53 5f 4d 41 58 5f |efine CL|ASS_MAX_|
|000048d0| 4e 52 45 47 53 28 43 4c | 41 53 53 2c 20 4d 4f 44 |NREGS(CL|ASS, MOD|
|000048e0| 45 29 09 5c 0d 20 28 28 | 43 4c 41 53 53 29 20 3d |E).\. ((|CLASS) =|
|000048f0| 3d 20 46 50 5f 52 45 47 | 53 20 3f 20 31 20 5c 0d |= FP_REG|S ? 1 \.|
|00004900| 20 20 3a 20 28 28 47 45 | 54 5f 4d 4f 44 45 5f 53 | : ((GE|T_MODE_S|
|00004910| 49 5a 45 20 28 4d 4f 44 | 45 29 20 2b 20 55 4e 49 |IZE (MOD|E) + UNI|
|00004920| 54 53 5f 50 45 52 5f 57 | 4f 52 44 20 2d 20 31 29 |TS_PER_W|ORD - 1)|
|00004930| 20 2f 20 55 4e 49 54 53 | 5f 50 45 52 5f 57 4f 52 | / UNITS|_PER_WOR|
|00004940| 44 29 29 0d 0c 0d 2f 2a | 20 53 74 61 63 6b 20 6c |D)).../*| Stack l|
|00004950| 61 79 6f 75 74 3b 20 66 | 75 6e 63 74 69 6f 6e 20 |ayout; f|unction |
|00004960| 65 6e 74 72 79 2c 20 65 | 78 69 74 20 61 6e 64 20 |entry, e|xit and |
|00004970| 63 61 6c 6c 69 6e 67 2e | 20 20 2a 2f 0d 0d 2f 2a |calling.| */../*|
|00004980| 20 44 65 66 69 6e 65 20 | 74 68 69 73 20 69 66 20 | Define |this if |
|00004990| 70 75 73 68 69 6e 67 20 | 61 20 77 6f 72 64 20 6f |pushing |a word o|
|000049a0| 6e 20 74 68 65 20 73 74 | 61 63 6b 0d 20 20 20 6d |n the st|ack. m|
|000049b0| 61 6b 65 73 20 74 68 65 | 20 73 74 61 63 6b 20 70 |akes the| stack p|
|000049c0| 6f 69 6e 74 65 72 20 61 | 20 73 6d 61 6c 6c 65 72 |ointer a| smaller|
|000049d0| 20 61 64 64 72 65 73 73 | 2e 20 20 2a 2f 0d 23 64 | address|. */.#d|
|000049e0| 65 66 69 6e 65 20 53 54 | 41 43 4b 5f 47 52 4f 57 |efine ST|ACK_GROW|
|000049f0| 53 5f 44 4f 57 4e 57 41 | 52 44 0d 0d 2f 2a 20 44 |S_DOWNWA|RD../* D|
|00004a00| 65 66 69 6e 65 20 74 68 | 69 73 20 69 66 20 74 68 |efine th|is if th|
|00004a10| 65 20 6e 6f 6d 69 6e 61 | 6c 20 61 64 64 72 65 73 |e nomina|l addres|
|00004a20| 73 20 6f 66 20 74 68 65 | 20 73 74 61 63 6b 20 66 |s of the| stack f|
|00004a30| 72 61 6d 65 0d 20 20 20 | 69 73 20 61 74 20 74 68 |rame. |is at th|
|00004a40| 65 20 68 69 67 68 2d 61 | 64 64 72 65 73 73 20 65 |e high-a|ddress e|
|00004a50| 6e 64 20 6f 66 20 74 68 | 65 20 6c 6f 63 61 6c 20 |nd of th|e local |
|00004a60| 76 61 72 69 61 62 6c 65 | 73 3b 0d 20 20 20 74 68 |variable|s;. th|
|00004a70| 61 74 20 69 73 2c 20 65 | 61 63 68 20 61 64 64 69 |at is, e|ach addi|
|00004a80| 74 69 6f 6e 61 6c 20 6c | 6f 63 61 6c 20 76 61 72 |tional l|ocal var|
|00004a90| 69 61 62 6c 65 20 61 6c | 6c 6f 63 61 74 65 64 0d |iable al|located.|
|00004aa0| 20 20 20 67 6f 65 73 20 | 61 74 20 61 20 6d 6f 72 | goes |at a mor|
|00004ab0| 65 20 6e 65 67 61 74 69 | 76 65 20 6f 66 66 73 65 |e negati|ve offse|
|00004ac0| 74 20 69 6e 20 74 68 65 | 20 66 72 61 6d 65 2e 20 |t in the| frame. |
|00004ad0| 20 2a 2f 0d 23 64 65 66 | 69 6e 65 20 46 52 41 4d | */.#def|ine FRAM|
|00004ae0| 45 5f 47 52 4f 57 53 5f | 44 4f 57 4e 57 41 52 44 |E_GROWS_|DOWNWARD|
|00004af0| 0d 0d 2f 2a 20 4f 66 66 | 73 65 74 20 77 69 74 68 |../* Off|set with|
|00004b00| 69 6e 20 73 74 61 63 6b | 20 66 72 61 6d 65 20 74 |in stack| frame t|
|00004b10| 6f 20 73 74 61 72 74 20 | 61 6c 6c 6f 63 61 74 69 |o start |allocati|
|00004b20| 6e 67 20 6c 6f 63 61 6c | 20 76 61 72 69 61 62 6c |ng local| variabl|
|00004b30| 65 73 20 61 74 2e 0d 20 | 20 20 49 66 20 46 52 41 |es at.. | If FRA|
|00004b40| 4d 45 5f 47 52 4f 57 53 | 5f 44 4f 57 4e 57 41 52 |ME_GROWS|_DOWNWAR|
|00004b50| 44 2c 20 74 68 69 73 20 | 69 73 20 74 68 65 20 6f |D, this |is the o|
|00004b60| 66 66 73 65 74 20 74 6f | 20 74 68 65 20 45 4e 44 |ffset to| the END|
|00004b70| 20 6f 66 20 74 68 65 0d | 20 20 20 66 69 72 73 74 | of the.| first|
|00004b80| 20 6c 6f 63 61 6c 20 61 | 6c 6c 6f 63 61 74 65 64 | local a|llocated|
|00004b90| 2e 20 20 4f 74 68 65 72 | 77 69 73 65 2c 20 69 74 |. Other|wise, it|
|00004ba0| 20 69 73 20 74 68 65 20 | 6f 66 66 73 65 74 20 74 | is the |offset t|
|00004bb0| 6f 20 74 68 65 20 42 45 | 47 49 4e 4e 49 4e 47 0d |o the BE|GINNING.|
|00004bc0| 20 20 20 6f 66 20 74 68 | 65 20 66 69 72 73 74 20 | of th|e first |
|00004bd0| 6c 6f 63 61 6c 20 61 6c | 6c 6f 63 61 74 65 64 2e |local al|located.|
|00004be0| 20 20 2a 2f 0d 23 64 65 | 66 69 6e 65 20 53 54 41 | */.#de|fine STA|
|00004bf0| 52 54 49 4e 47 5f 46 52 | 41 4d 45 5f 4f 46 46 53 |RTING_FR|AME_OFFS|
|00004c00| 45 54 20 30 0d 0d 2f 2a | 20 49 66 20 77 65 20 67 |ET 0../*| If we g|
|00004c10| 65 6e 65 72 61 74 65 20 | 61 6e 20 69 6e 73 6e 20 |enerate |an insn |
|00004c20| 74 6f 20 70 75 73 68 20 | 42 59 54 45 53 20 62 79 |to push |BYTES by|
|00004c30| 74 65 73 2c 0d 20 20 20 | 74 68 69 73 20 73 61 79 |tes,. |this say|
|00004c40| 73 20 68 6f 77 20 6d 61 | 6e 79 20 74 68 65 20 73 |s how ma|ny the s|
|00004c50| 74 61 63 6b 20 70 6f 69 | 6e 74 65 72 20 72 65 61 |tack poi|nter rea|
|00004c60| 6c 6c 79 20 61 64 76 61 | 6e 63 65 73 20 62 79 2e |lly adva|nces by.|
|00004c70| 0d 20 20 20 4f 6e 20 74 | 68 65 20 36 38 30 30 30 |. On t|he 68000|
|00004c80| 2c 20 73 70 40 2d 20 69 | 6e 20 61 20 62 79 74 65 |, sp@- i|n a byte|
|00004c90| 20 69 6e 73 6e 20 72 65 | 61 6c 6c 79 20 70 75 73 | insn re|ally pus|
|00004ca0| 68 65 73 20 61 20 77 6f | 72 64 2e 20 20 2a 2f 0d |hes a wo|rd. */.|
|00004cb0| 23 64 65 66 69 6e 65 20 | 50 55 53 48 5f 52 4f 55 |#define |PUSH_ROU|
|00004cc0| 4e 44 49 4e 47 28 42 59 | 54 45 53 29 20 28 28 28 |NDING(BY|TES) (((|
|00004cd0| 42 59 54 45 53 29 20 2b | 20 31 29 20 26 20 7e 31 |BYTES) +| 1) & ~1|
|00004ce0| 29 0d 0d 2f 2a 20 4f 66 | 66 73 65 74 20 6f 66 20 |)../* Of|fset of |
|00004cf0| 66 69 72 73 74 20 70 61 | 72 61 6d 65 74 65 72 20 |first pa|rameter |
|00004d00| 66 72 6f 6d 20 74 68 65 | 20 61 72 67 75 6d 65 6e |from the| argumen|
|00004d10| 74 20 70 6f 69 6e 74 65 | 72 20 72 65 67 69 73 74 |t pointe|r regist|
|00004d20| 65 72 20 76 61 6c 75 65 | 2e 20 20 2a 2f 0d 23 64 |er value|. */.#d|
|00004d30| 65 66 69 6e 65 20 46 49 | 52 53 54 5f 50 41 52 4d |efine FI|RST_PARM|
|00004d40| 5f 4f 46 46 53 45 54 28 | 46 4e 44 45 43 4c 29 20 |_OFFSET(|FNDECL) |
|00004d50| 38 0d 0d 2f 2a 20 56 61 | 6c 75 65 20 69 73 20 31 |8../* Va|lue is 1|
|00004d60| 20 69 66 20 72 65 74 75 | 72 6e 69 6e 67 20 66 72 | if retu|rning fr|
|00004d70| 6f 6d 20 61 20 66 75 6e | 63 74 69 6f 6e 20 63 61 |om a fun|ction ca|
|00004d80| 6c 6c 20 61 75 74 6f 6d | 61 74 69 63 61 6c 6c 79 |ll autom|atically|
|00004d90| 0d 20 20 20 70 6f 70 73 | 20 74 68 65 20 61 72 67 |. pops| the arg|
|00004da0| 75 6d 65 6e 74 73 20 64 | 65 73 63 72 69 62 65 64 |uments d|escribed|
|00004db0| 20 62 79 20 74 68 65 20 | 6e 75 6d 62 65 72 2d 6f | by the |number-o|
|00004dc0| 66 2d 61 72 67 73 20 66 | 69 65 6c 64 20 69 6e 20 |f-args f|ield in |
|00004dd0| 74 68 65 20 63 61 6c 6c | 2e 0d 20 20 20 46 55 4e |the call|.. FUN|
|00004de0| 54 59 50 45 20 69 73 20 | 74 68 65 20 64 61 74 61 |TYPE is |the data|
|00004df0| 20 74 79 70 65 20 6f 66 | 20 74 68 65 20 66 75 6e | type of| the fun|
|00004e00| 63 74 69 6f 6e 20 28 61 | 73 20 61 20 74 72 65 65 |ction (a|s a tree|
|00004e10| 29 2c 0d 20 20 20 6f 72 | 20 66 6f 72 20 61 20 6c |),. or| for a l|
|00004e20| 69 62 72 61 72 79 20 63 | 61 6c 6c 20 69 74 20 69 |ibrary c|all it i|
|00004e30| 73 20 61 6e 20 69 64 65 | 6e 74 69 66 69 65 72 20 |s an ide|ntifier |
|00004e40| 6e 6f 64 65 20 66 6f 72 | 20 74 68 65 20 73 75 62 |node for| the sub|
|00004e50| 72 6f 75 74 69 6e 65 20 | 6e 61 6d 65 2e 0d 0d 20 |routine |name... |
|00004e60| 20 20 41 6c 77 61 79 73 | 20 66 61 6c 73 65 20 6f | Always| false o|
|00004e70| 6e 20 74 68 65 20 4d 61 | 63 2c 20 65 76 65 6e 20 |n the Ma|c, even |
|00004e80| 66 6f 72 20 70 61 73 63 | 61 6c 20 66 6e 73 20 28 |for pasc|al fns (|
|00004e90| 72 65 61 6c 6c 79 3f 29 | 2e 20 2a 2f 0d 0d 23 64 |really?)|. */..#d|
|00004ea0| 65 66 69 6e 65 20 52 45 | 54 55 52 4e 5f 50 4f 50 |efine RE|TURN_POP|
|00004eb0| 53 5f 41 52 47 53 28 46 | 55 4e 54 59 50 45 29 20 |S_ARGS(F|UNTYPE) |
|00004ec0| 30 0d 0d 2f 2a 20 44 65 | 66 69 6e 65 20 68 6f 77 |0../* De|fine how|
|00004ed0| 20 74 6f 20 66 69 6e 64 | 20 74 68 65 20 76 61 6c | to find| the val|
|00004ee0| 75 65 20 72 65 74 75 72 | 6e 65 64 20 62 79 20 61 |ue retur|ned by a|
|00004ef0| 20 66 75 6e 63 74 69 6f | 6e 2e 0d 20 20 20 56 41 | functio|n.. VA|
|00004f00| 4c 54 59 50 45 20 69 73 | 20 74 68 65 20 64 61 74 |LTYPE is| the dat|
|00004f10| 61 20 74 79 70 65 20 6f | 66 20 74 68 65 20 76 61 |a type o|f the va|
|00004f20| 6c 75 65 20 28 61 73 20 | 61 20 74 72 65 65 29 2e |lue (as |a tree).|
|00004f30| 0d 20 20 20 49 66 20 74 | 68 65 20 70 72 65 63 69 |. If t|he preci|
|00004f40| 73 65 20 66 75 6e 63 74 | 69 6f 6e 20 62 65 69 6e |se funct|ion bein|
|00004f50| 67 20 63 61 6c 6c 65 64 | 20 69 73 20 6b 6e 6f 77 |g called| is know|
|00004f60| 6e 2c 20 46 55 4e 43 20 | 69 73 20 69 74 73 20 46 |n, FUNC |is its F|
|00004f70| 55 4e 43 54 49 4f 4e 5f | 44 45 43 4c 3b 0d 20 20 |UNCTION_|DECL;. |
|00004f80| 20 6f 74 68 65 72 77 69 | 73 65 2c 20 46 55 4e 43 | otherwi|se, FUNC|
|00004f90| 20 69 73 20 30 2e 20 20 | 2a 2f 0d 0d 2f 2a 20 4f | is 0. |*/../* O|
|00004fa0| 6e 20 74 68 65 20 4d 61 | 63 20 74 68 65 20 72 65 |n the Ma|c the re|
|00004fb0| 74 75 72 6e 20 76 61 6c | 75 65 20 69 73 20 69 6e |turn val|ue is in|
|00004fc0| 20 44 30 20 65 78 63 65 | 70 74 20 66 6f 72 20 70 | D0 exce|pt for p|
|00004fd0| 61 73 63 61 6c 20 72 6f | 75 74 69 6e 65 73 2c 20 |ascal ro|utines, |
|00004fe0| 62 75 74 0d 20 20 20 70 | 61 73 63 61 6c 20 66 61 |but. p|ascal fa|
|00004ff0| 6b 65 73 20 74 68 69 73 | 2c 20 73 69 6e 63 65 20 |kes this|, since |
|00005000| 73 70 61 63 65 20 68 61 | 73 20 74 6f 20 62 65 20 |space ha|s to be |
|00005010| 72 65 73 65 72 76 65 64 | 20 61 68 65 61 64 20 6f |reserved| ahead o|
|00005020| 66 20 74 69 6d 65 2c 20 | 77 68 69 63 68 0d 20 20 |f time, |which. |
|00005030| 20 6e 65 65 64 73 20 6d | 6f 64 73 20 69 6e 20 74 | needs m|ods in t|
|00005040| 68 65 20 63 6f 64 65 20 | 70 72 6f 70 65 72 2e 20 |he code |proper. |
|00005050| 2a 2f 0d 2f 2a 20 36 38 | 38 38 31 20 66 75 6e 63 |*/./* 68|881 func|
|00005060| 74 69 6f 6e 73 20 72 65 | 74 75 72 6e 20 66 6c 6f |tions re|turn flo|
|00005070| 61 74 73 20 69 6e 20 46 | 50 30 2e 20 2a 2f 0d 0d |ats in F|P0. */..|
|00005080| 23 64 65 66 69 6e 65 20 | 46 55 4e 43 54 49 4f 4e |#define |FUNCTION|
|00005090| 5f 56 41 4c 55 45 28 56 | 41 4c 54 59 50 45 2c 20 |_VALUE(V|ALTYPE, |
|000050a0| 46 55 4e 43 29 20 20 5c | 0d 20 20 67 65 6e 5f 72 |FUNC) \|. gen_r|
|000050b0| 74 78 20 28 52 45 47 2c | 20 54 59 50 45 5f 4d 4f |tx (REG,| TYPE_MO|
|000050c0| 44 45 20 28 56 41 4c 54 | 59 50 45 29 2c 20 20 5c |DE (VALT|YPE), \|
|000050d0| 0d 09 20 20 20 28 54 41 | 52 47 45 54 5f 36 38 38 |.. (TA|RGET_688|
|000050e0| 38 31 20 26 26 20 20 5c | 0d 09 20 20 20 20 28 47 |81 && \|.. (G|
|000050f0| 45 54 5f 4d 4f 44 45 5f | 43 4c 41 53 53 20 28 54 |ET_MODE_|CLASS (T|
|00005100| 59 50 45 5f 4d 4f 44 45 | 20 28 56 41 4c 54 59 50 |YPE_MODE| (VALTYP|
|00005110| 45 29 29 20 3d 3d 20 4d | 4f 44 45 5f 46 4c 4f 41 |E)) == M|ODE_FLOA|
|00005120| 54 29 20 3f 20 20 5c 0d | 09 20 20 20 20 31 36 20 |T) ? \.|. 16 |
|00005130| 3a 20 30 29 29 0d 0d 2f | 2a 20 54 68 65 20 61 63 |: 0))../|* The ac|
|00005140| 74 75 61 6c 20 6f 66 66 | 73 65 74 20 67 65 74 73 |tual off|set gets|
|00005150| 20 66 69 6c 6c 65 64 20 | 61 66 74 65 72 20 61 73 | filled |after as|
|00005160| 73 69 67 6e 5f 70 61 72 | 6d 73 20 69 73 20 72 75 |sign_par|ms is ru|
|00005170| 6e 2e 2e 2e 20 2a 2f 0d | 0d 23 64 65 66 69 6e 65 |n... */.|.#define|
|00005180| 20 46 55 4e 43 54 49 4f | 4e 5f 4f 55 54 47 4f 49 | FUNCTIO|N_OUTGOI|
|00005190| 4e 47 5f 56 41 4c 55 45 | 28 56 41 4c 54 59 50 45 |NG_VALUE|(VALTYPE|
|000051a0| 2c 20 46 55 4e 43 29 20 | 5c 0d 20 20 28 28 28 46 |, FUNC) |\. (((F|
|000051b0| 55 4e 43 29 20 26 26 20 | 63 75 72 72 65 6e 74 5f |UNC) && |current_|
|000051c0| 66 75 6e 63 74 69 6f 6e | 5f 69 73 5f 70 61 73 63 |function|_is_pasc|
|000051d0| 61 6c 29 20 3f 20 20 5c | 0d 20 20 20 67 65 6e 5f |al) ? \|. gen_|
|000051e0| 72 74 78 20 28 4d 45 4d | 2c 20 54 59 50 45 5f 4d |rtx (MEM|, TYPE_M|
|000051f0| 4f 44 45 20 28 56 41 4c | 54 59 50 45 29 2c 20 20 |ODE (VAL|TYPE), |
|00005200| 5c 0d 20 20 20 20 20 20 | 20 20 20 20 20 20 67 65 |\. | ge|
|00005210| 6e 5f 72 74 78 20 28 50 | 4c 55 53 2c 20 50 6d 6f |n_rtx (P|LUS, Pmo|
|00005220| 64 65 2c 20 20 5c 0d 09 | 09 20 20 20 20 20 66 72 |de, \..|. fr|
|00005230| 61 6d 65 5f 70 6f 69 6e | 74 65 72 5f 72 74 78 2c |ame_poin|ter_rtx,|
|00005240| 20 20 5c 0d 09 09 20 20 | 20 20 20 67 65 6e 5f 72 | \... | gen_r|
|00005250| 74 78 20 28 43 4f 4e 53 | 54 5f 49 4e 54 2c 20 56 |tx (CONS|T_INT, V|
|00005260| 4f 49 44 6d 6f 64 65 2c | 20 31 32 33 34 35 29 29 |OIDmode,| 12345))|
|00005270| 29 20 3a 20 20 5c 0d 20 | 20 20 46 55 4e 43 54 49 |) : \. | FUNCTI|
|00005280| 4f 4e 5f 56 41 4c 55 45 | 20 28 56 41 4c 54 59 50 |ON_VALUE| (VALTYP|
|00005290| 45 2c 20 46 55 4e 43 29 | 29 0d 0d 2f 2a 20 44 65 |E, FUNC)|)../* De|
|000052a0| 66 69 6e 65 20 68 6f 77 | 20 74 6f 20 66 69 6e 64 |fine how| to find|
|000052b0| 20 74 68 65 20 76 61 6c | 75 65 20 72 65 74 75 72 | the val|ue retur|
|000052c0| 6e 65 64 20 62 79 20 61 | 20 6c 69 62 72 61 72 79 |ned by a| library|
|000052d0| 20 66 75 6e 63 74 69 6f | 6e 0d 20 20 20 61 73 73 | functio|n. ass|
|000052e0| 75 6d 69 6e 67 20 74 68 | 65 20 76 61 6c 75 65 20 |uming th|e value |
|000052f0| 68 61 73 20 6d 6f 64 65 | 20 4d 4f 44 45 2e 20 20 |has mode| MODE. |
|00005300| 2a 2f 0d 0d 2f 2a 20 49 | 66 20 77 65 20 65 76 65 |*/../* I|f we eve|
|00005310| 72 20 68 61 76 65 20 61 | 6e 79 20 6c 69 62 20 72 |r have a|ny lib r|
|00005320| 6f 75 74 69 6e 65 73 2c | 20 74 68 65 79 27 6c 6c |outines,| they'll|
|00005330| 20 70 72 6f 62 61 62 6c | 79 20 72 65 74 75 72 6e | probabl|y return|
|00005340| 20 69 6e 20 44 30 2e 20 | 2a 2f 0d 0d 23 64 65 66 | in D0. |*/..#def|
|00005350| 69 6e 65 20 4c 49 42 43 | 41 4c 4c 5f 56 41 4c 55 |ine LIBC|ALL_VALU|
|00005360| 45 28 4d 4f 44 45 29 20 | 20 67 65 6e 5f 72 74 78 |E(MODE) | gen_rtx|
|00005370| 20 28 52 45 47 2c 20 4d | 4f 44 45 2c 20 30 29 0d | (REG, M|ODE, 0).|
|00005380| 0d 2f 2a 20 31 20 69 66 | 20 4e 20 69 73 20 61 20 |./* 1 if| N is a |
|00005390| 70 6f 73 73 69 62 6c 65 | 20 72 65 67 69 73 74 65 |possible| registe|
|000053a0| 72 20 6e 75 6d 62 65 72 | 20 66 6f 72 20 61 20 66 |r number| for a f|
|000053b0| 75 6e 63 74 69 6f 6e 20 | 76 61 6c 75 65 2e 0d 2f |unction |value../|
|000053c0| 2a 20 54 68 69 73 20 69 | 73 20 64 30 20 6f 72 20 |* This i|s d0 or |
|000053d0| 66 70 30 2e 20 2a 2f 0d | 0d 23 64 65 66 69 6e 65 |fp0. */.|.#define|
|000053e0| 20 46 55 4e 43 54 49 4f | 4e 5f 56 41 4c 55 45 5f | FUNCTIO|N_VALUE_|
|000053f0| 52 45 47 4e 4f 5f 50 28 | 4e 29 20 20 5c 0d 20 20 |REGNO_P(|N) \. |
|00005400| 28 28 4e 29 20 3d 3d 20 | 30 20 7c 7c 20 28 54 41 |((N) == |0 || (TA|
|00005410| 52 47 45 54 5f 36 38 38 | 38 31 20 26 26 20 28 4e |RGET_688|81 && (N|
|00005420| 29 20 3d 3d 20 31 36 29 | 29 0d 0d 2f 2a 20 44 65 |) == 16)|)../* De|
|00005430| 66 69 6e 65 20 74 68 69 | 73 20 69 66 20 50 43 43 |fine thi|s if PCC|
|00005440| 20 75 73 65 73 20 74 68 | 65 20 6e 6f 6e 72 65 65 | uses th|e nonree|
|00005450| 6e 74 72 61 6e 74 20 63 | 6f 6e 76 65 6e 74 69 6f |ntrant c|onventio|
|00005460| 6e 20 66 6f 72 20 72 65 | 74 75 72 6e 69 6e 67 0d |n for re|turning.|
|00005470| 20 20 20 73 74 72 75 63 | 74 75 72 65 20 61 6e 64 | struc|ture and|
|00005480| 20 75 6e 69 6f 6e 20 76 | 61 6c 75 65 73 2e 20 20 | union v|alues. |
|00005490| 2a 2f 0d 2f 2a 20 4d 50 | 57 20 64 6f 65 73 6e 27 |*/./* MP|W doesn'|
|000054a0| 74 20 6b 6e 6f 77 20 64 | 69 64 64 6c 79 2d 73 71 |t know d|iddly-sq|
|000054b0| 75 61 74 20 61 62 6f 75 | 74 20 50 43 43 2e 20 2a |uat abou|t PCC. *|
|000054c0| 2f 0d 0d 23 75 6e 64 65 | 66 20 50 43 43 5f 53 54 |/..#unde|f PCC_ST|
|000054d0| 41 54 49 43 5f 53 54 52 | 55 43 54 5f 52 45 54 55 |ATIC_STR|UCT_RETU|
|000054e0| 52 4e 0d 0d 2f 2a 20 31 | 20 69 66 20 4e 20 69 73 |RN../* 1| if N is|
|000054f0| 20 61 20 70 6f 73 73 69 | 62 6c 65 20 72 65 67 69 | a possi|ble regi|
|00005500| 73 74 65 72 20 6e 75 6d | 62 65 72 20 66 6f 72 20 |ster num|ber for |
|00005510| 66 75 6e 63 74 69 6f 6e | 20 61 72 67 75 6d 65 6e |function| argumen|
|00005520| 74 20 70 61 73 73 69 6e | 67 2e 0d 20 20 20 4f 6e |t passin|g.. On|
|00005530| 20 74 68 65 20 36 38 30 | 30 30 2c 20 6e 6f 20 72 | the 680|00, no r|
|00005540| 65 67 69 73 74 65 72 73 | 20 61 72 65 20 75 73 65 |egisters| are use|
|00005550| 64 20 69 6e 20 74 68 69 | 73 20 77 61 79 2e 20 20 |d in thi|s way. |
|00005560| 2a 2f 0d 0d 23 64 65 66 | 69 6e 65 20 46 55 4e 43 |*/..#def|ine FUNC|
|00005570| 54 49 4f 4e 5f 41 52 47 | 5f 52 45 47 4e 4f 5f 50 |TION_ARG|_REGNO_P|
|00005580| 28 4e 29 20 30 0d 0c 0d | 2f 2a 20 44 65 66 69 6e |(N) 0...|/* Defin|
|00005590| 65 20 61 20 64 61 74 61 | 20 74 79 70 65 20 66 6f |e a data| type fo|
|000055a0| 72 20 72 65 63 6f 72 64 | 69 6e 67 20 69 6e 66 6f |r record|ing info|
|000055b0| 20 61 62 6f 75 74 20 61 | 6e 20 61 72 67 75 6d 65 | about a|n argume|
|000055c0| 6e 74 20 6c 69 73 74 0d | 20 20 20 64 75 72 69 6e |nt list.| durin|
|000055d0| 67 20 74 68 65 20 73 63 | 61 6e 20 6f 66 20 74 68 |g the sc|an of th|
|000055e0| 61 74 20 61 72 67 75 6d | 65 6e 74 20 6c 69 73 74 |at argum|ent list|
|000055f0| 2e 20 20 54 68 69 73 20 | 64 61 74 61 20 74 79 70 |. This |data typ|
|00005600| 65 20 73 68 6f 75 6c 64 | 0d 20 20 20 68 6f 6c 64 |e should|. hold|
|00005610| 20 61 6c 6c 20 6e 65 63 | 65 73 73 61 72 79 20 69 | all nec|essary i|
|00005620| 6e 66 6f 72 6d 61 74 69 | 6f 6e 20 61 62 6f 75 74 |nformati|on about|
|00005630| 20 74 68 65 20 66 75 6e | 63 74 69 6f 6e 20 69 74 | the fun|ction it|
|00005640| 73 65 6c 66 0d 20 20 20 | 61 6e 64 20 61 62 6f 75 |self. |and abou|
|00005650| 74 20 74 68 65 20 61 72 | 67 73 20 70 72 6f 63 65 |t the ar|gs proce|
|00005660| 73 73 65 64 20 73 6f 20 | 66 61 72 2c 20 65 6e 6f |ssed so |far, eno|
|00005670| 75 67 68 20 74 6f 20 65 | 6e 61 62 6c 65 20 6d 61 |ugh to e|nable ma|
|00005680| 63 72 6f 73 0d 20 20 20 | 73 75 63 68 20 61 73 20 |cros. |such as |
|00005690| 46 55 4e 43 54 49 4f 4e | 5f 41 52 47 20 74 6f 20 |FUNCTION|_ARG to |
|000056a0| 64 65 74 65 72 6d 69 6e | 65 20 77 68 65 72 65 20 |determin|e where |
|000056b0| 74 68 65 20 6e 65 78 74 | 20 61 72 67 20 73 68 6f |the next| arg sho|
|000056c0| 75 6c 64 20 67 6f 2e 0d | 0d 20 20 20 4f 6e 20 74 |uld go..|. On t|
|000056d0| 68 65 20 6d 36 38 6b 2c | 20 74 68 69 73 20 69 73 |he m68k,| this is|
|000056e0| 20 61 20 73 69 6e 67 6c | 65 20 69 6e 74 65 67 65 | a singl|e intege|
|000056f0| 72 2c 20 77 68 69 63 68 | 20 69 73 20 61 20 6e 75 |r, which| is a nu|
|00005700| 6d 62 65 72 20 6f 66 20 | 62 79 74 65 73 0d 20 20 |mber of |bytes. |
|00005710| 20 6f 66 20 61 72 67 75 | 6d 65 6e 74 73 20 73 63 | of argu|ments sc|
|00005720| 61 6e 6e 65 64 20 73 6f | 20 66 61 72 2e 20 20 2a |anned so| far. *|
|00005730| 2f 0d 0d 23 64 65 66 69 | 6e 65 20 43 55 4d 55 4c |/..#defi|ne CUMUL|
|00005740| 41 54 49 56 45 5f 41 52 | 47 53 20 69 6e 74 0d 0d |ATIVE_AR|GS int..|
|00005750| 2f 2a 20 49 6e 69 74 69 | 61 6c 69 7a 65 20 61 20 |/* Initi|alize a |
|00005760| 76 61 72 69 61 62 6c 65 | 20 43 55 4d 20 6f 66 20 |variable| CUM of |
|00005770| 74 79 70 65 20 43 55 4d | 55 4c 41 54 49 56 45 5f |type CUM|ULATIVE_|
|00005780| 41 52 47 53 0d 20 20 20 | 66 6f 72 20 61 20 63 61 |ARGS. |for a ca|
|00005790| 6c 6c 20 74 6f 20 61 20 | 66 75 6e 63 74 69 6f 6e |ll to a |function|
|000057a0| 20 77 68 6f 73 65 20 64 | 61 74 61 20 74 79 70 65 | whose d|ata type|
|000057b0| 20 69 73 20 46 4e 54 59 | 50 45 2e 0d 20 20 20 46 | is FNTY|PE.. F|
|000057c0| 6f 72 20 61 20 6c 69 62 | 72 61 72 79 20 63 61 6c |or a lib|rary cal|
|000057d0| 6c 2c 20 46 4e 54 59 50 | 45 20 69 73 20 30 2e 0d |l, FNTYP|E is 0..|
|000057e0| 0d 20 20 20 4f 6e 20 74 | 68 65 20 6d 36 38 6b 2c |. On t|he m68k,|
|000057f0| 20 74 68 65 20 6f 66 66 | 73 65 74 20 73 74 61 72 | the off|set star|
|00005800| 74 73 20 61 74 20 30 2e | 20 20 2a 2f 0d 0d 23 64 |ts at 0.| */..#d|
|00005810| 65 66 69 6e 65 20 49 4e | 49 54 5f 43 55 4d 55 4c |efine IN|IT_CUMUL|
|00005820| 41 54 49 56 45 5f 41 52 | 47 53 28 43 55 4d 2c 46 |ATIVE_AR|GS(CUM,F|
|00005830| 4e 54 59 50 45 29 09 5c | 0d 20 28 28 43 55 4d 29 |NTYPE).\|. ((CUM)|
|00005840| 20 3d 20 30 29 0d 0d 2f | 2a 20 55 70 64 61 74 65 | = 0)../|* Update|
|00005850| 20 74 68 65 20 64 61 74 | 61 20 69 6e 20 43 55 4d | the dat|a in CUM|
|00005860| 20 74 6f 20 61 64 76 61 | 6e 63 65 20 6f 76 65 72 | to adva|nce over|
|00005870| 20 61 6e 20 61 72 67 75 | 6d 65 6e 74 0d 20 20 20 | an argu|ment. |
|00005880| 6f 66 20 6d 6f 64 65 20 | 4d 4f 44 45 20 61 6e 64 |of mode |MODE and|
|00005890| 20 64 61 74 61 20 74 79 | 70 65 20 54 59 50 45 2e | data ty|pe TYPE.|
|000058a0| 0d 20 20 20 28 54 59 50 | 45 20 69 73 20 6e 75 6c |. (TYP|E is nul|
|000058b0| 6c 20 66 6f 72 20 6c 69 | 62 63 61 6c 6c 73 20 77 |l for li|bcalls w|
|000058c0| 68 65 72 65 20 74 68 61 | 74 20 69 6e 66 6f 72 6d |here tha|t inform|
|000058d0| 61 74 69 6f 6e 20 6d 61 | 79 20 6e 6f 74 20 62 65 |ation ma|y not be|
|000058e0| 20 61 76 61 69 6c 61 62 | 6c 65 2e 29 20 20 2a 2f | availab|le.) */|
|000058f0| 0d 0d 23 64 65 66 69 6e | 65 20 46 55 4e 43 54 49 |..#defin|e FUNCTI|
|00005900| 4f 4e 5f 41 52 47 5f 41 | 44 56 41 4e 43 45 28 43 |ON_ARG_A|DVANCE(C|
|00005910| 55 4d 2c 20 4d 4f 44 45 | 2c 20 54 59 50 45 2c 20 |UM, MODE|, TYPE, |
|00005920| 4e 41 4d 45 44 29 09 5c | 0d 20 28 28 43 55 4d 29 |NAMED).\|. ((CUM)|
|00005930| 20 2b 3d 20 28 28 4d 4f | 44 45 29 20 21 3d 20 42 | += ((MO|DE) != B|
|00005940| 4c 4b 6d 6f 64 65 09 09 | 09 5c 0d 09 20 20 20 20 |LKmode..|.\.. |
|00005950| 3f 20 28 47 45 54 5f 4d | 4f 44 45 5f 53 49 5a 45 |? (GET_M|ODE_SIZE|
|00005960| 20 28 4d 4f 44 45 29 20 | 2b 20 33 29 20 26 20 7e | (MODE) |+ 3) & ~|
|00005970| 33 09 5c 0d 09 20 20 20 | 20 3a 20 28 69 6e 74 5f |3.\.. | : (int_|
|00005980| 73 69 7a 65 5f 69 6e 5f | 62 79 74 65 73 20 28 54 |size_in_|bytes (T|
|00005990| 59 50 45 29 20 2b 20 33 | 29 20 26 20 7e 33 29 29 |YPE) + 3|) & ~3))|
|000059a0| 0d 0d 2f 2a 20 44 65 66 | 69 6e 65 20 77 68 65 72 |../* Def|ine wher|
|000059b0| 65 20 74 6f 20 70 75 74 | 20 74 68 65 20 61 72 67 |e to put| the arg|
|000059c0| 75 6d 65 6e 74 73 20 74 | 6f 20 61 20 66 75 6e 63 |uments t|o a func|
|000059d0| 74 69 6f 6e 2e 0d 20 20 | 20 56 61 6c 75 65 20 69 |tion.. | Value i|
|000059e0| 73 20 7a 65 72 6f 20 74 | 6f 20 70 75 73 68 20 74 |s zero t|o push t|
|000059f0| 68 65 20 61 72 67 75 6d | 65 6e 74 20 6f 6e 20 74 |he argum|ent on t|
|00005a00| 68 65 20 73 74 61 63 6b | 2c 0d 20 20 20 6f 72 20 |he stack|,. or |
|00005a10| 61 20 68 61 72 64 20 72 | 65 67 69 73 74 65 72 20 |a hard r|egister |
|00005a20| 69 6e 20 77 68 69 63 68 | 20 74 6f 20 73 74 6f 72 |in which| to stor|
|00005a30| 65 20 74 68 65 20 61 72 | 67 75 6d 65 6e 74 2e 0d |e the ar|gument..|
|00005a40| 0d 20 20 20 4d 4f 44 45 | 20 69 73 20 74 68 65 20 |. MODE| is the |
|00005a50| 61 72 67 75 6d 65 6e 74 | 27 73 20 6d 61 63 68 69 |argument|'s machi|
|00005a60| 6e 65 20 6d 6f 64 65 2e | 0d 20 20 20 54 59 50 45 |ne mode.|. TYPE|
|00005a70| 20 69 73 20 74 68 65 20 | 64 61 74 61 20 74 79 70 | is the |data typ|
|00005a80| 65 20 6f 66 20 74 68 65 | 20 61 72 67 75 6d 65 6e |e of the| argumen|
|00005a90| 74 20 28 61 73 20 61 20 | 74 72 65 65 29 2e 0d 20 |t (as a |tree).. |
|00005aa0| 20 20 20 54 68 69 73 20 | 69 73 20 6e 75 6c 6c 20 | This |is null |
|00005ab0| 66 6f 72 20 6c 69 62 63 | 61 6c 6c 73 20 77 68 65 |for libc|alls whe|
|00005ac0| 72 65 20 74 68 61 74 20 | 69 6e 66 6f 72 6d 61 74 |re that |informat|
|00005ad0| 69 6f 6e 20 6d 61 79 0d | 20 20 20 20 6e 6f 74 20 |ion may.| not |
|00005ae0| 62 65 20 61 76 61 69 6c | 61 62 6c 65 2e 0d 20 20 |be avail|able.. |
|00005af0| 20 43 55 4d 20 69 73 20 | 61 20 76 61 72 69 61 62 | CUM is |a variab|
|00005b00| 6c 65 20 6f 66 20 74 79 | 70 65 20 43 55 4d 55 4c |le of ty|pe CUMUL|
|00005b10| 41 54 49 56 45 5f 41 52 | 47 53 20 77 68 69 63 68 |ATIVE_AR|GS which|
|00005b20| 20 67 69 76 65 73 20 69 | 6e 66 6f 20 61 62 6f 75 | gives i|nfo abou|
|00005b30| 74 0d 20 20 20 20 74 68 | 65 20 70 72 65 63 65 64 |t. th|e preced|
|00005b40| 69 6e 67 20 61 72 67 73 | 20 61 6e 64 20 61 62 6f |ing args| and abo|
|00005b50| 75 74 20 74 68 65 20 66 | 75 6e 63 74 69 6f 6e 20 |ut the f|unction |
|00005b60| 62 65 69 6e 67 20 63 61 | 6c 6c 65 64 2e 0d 20 20 |being ca|lled.. |
|00005b70| 20 4e 41 4d 45 44 20 69 | 73 20 6e 6f 6e 7a 65 72 | NAMED i|s nonzer|
|00005b80| 6f 20 69 66 20 74 68 69 | 73 20 61 72 67 75 6d 65 |o if thi|s argume|
|00005b90| 6e 74 20 69 73 20 61 20 | 6e 61 6d 65 64 20 70 61 |nt is a |named pa|
|00005ba0| 72 61 6d 65 74 65 72 0d | 20 20 20 20 28 6f 74 68 |rameter.| (oth|
|00005bb0| 65 72 77 69 73 65 20 69 | 74 20 69 73 20 61 6e 20 |erwise i|t is an |
|00005bc0| 65 78 74 72 61 20 70 61 | 72 61 6d 65 74 65 72 20 |extra pa|rameter |
|00005bd0| 6d 61 74 63 68 69 6e 67 | 20 61 6e 20 65 6c 6c 69 |matching| an elli|
|00005be0| 70 73 69 73 29 2e 20 20 | 2a 2f 0d 0d 2f 2a 20 4f |psis). |*/../* O|
|00005bf0| 6e 20 74 68 65 20 36 38 | 30 30 30 20 61 6c 6c 20 |n the 68|000 all |
|00005c00| 61 72 67 73 20 61 72 65 | 20 70 75 73 68 65 64 2e |args are| pushed.|
|00005c10| 20 2a 2f 0d 0d 23 64 65 | 66 69 6e 65 20 46 55 4e | */..#de|fine FUN|
|00005c20| 43 54 49 4f 4e 5f 41 52 | 47 28 43 55 4d 2c 20 4d |CTION_AR|G(CUM, M|
|00005c30| 4f 44 45 2c 20 54 59 50 | 45 2c 20 4e 41 4d 45 44 |ODE, TYP|E, NAMED|
|00005c40| 29 20 30 0d 0d 2f 2a 20 | 46 6f 72 20 61 6e 20 61 |) 0../* |For an a|
|00005c50| 72 67 20 70 61 73 73 65 | 64 20 70 61 72 74 6c 79 |rg passe|d partly|
|00005c60| 20 69 6e 20 72 65 67 69 | 73 74 65 72 73 20 61 6e | in regi|sters an|
|00005c70| 64 20 70 61 72 74 6c 79 | 20 69 6e 20 6d 65 6d 6f |d partly| in memo|
|00005c80| 72 79 2c 0d 20 20 20 74 | 68 69 73 20 69 73 20 74 |ry,. t|his is t|
|00005c90| 68 65 20 6e 75 6d 62 65 | 72 20 6f 66 20 72 65 67 |he numbe|r of reg|
|00005ca0| 69 73 74 65 72 73 20 75 | 73 65 64 2e 0d 20 20 20 |isters u|sed.. |
|00005cb0| 46 6f 72 20 61 72 67 73 | 20 70 61 73 73 65 64 20 |For args| passed |
|00005cc0| 65 6e 74 69 72 65 6c 79 | 20 69 6e 20 72 65 67 69 |entirely| in regi|
|00005cd0| 73 74 65 72 73 20 6f 72 | 20 65 6e 74 69 72 65 6c |sters or| entirel|
|00005ce0| 79 20 69 6e 20 6d 65 6d | 6f 72 79 2c 20 7a 65 72 |y in mem|ory, zer|
|00005cf0| 6f 2e 20 20 2a 2f 0d 0d | 23 64 65 66 69 6e 65 20 |o. */..|#define |
|00005d00| 46 55 4e 43 54 49 4f 4e | 5f 41 52 47 5f 50 41 52 |FUNCTION|_ARG_PAR|
|00005d10| 54 49 41 4c 5f 4e 52 45 | 47 53 28 43 55 4d 2c 20 |TIAL_NRE|GS(CUM, |
|00005d20| 4d 4f 44 45 2c 20 54 59 | 50 45 2c 20 4e 41 4d 45 |MODE, TY|PE, NAME|
|00005d30| 44 29 20 30 0d 0d 2f 2a | 20 54 68 69 73 20 6d 61 |D) 0../*| This ma|
|00005d40| 63 72 6f 20 67 65 6e 65 | 72 61 74 65 73 20 74 68 |cro gene|rates th|
|00005d50| 65 20 61 73 73 65 6d 62 | 6c 79 20 63 6f 64 65 20 |e assemb|ly code |
|00005d60| 66 6f 72 20 66 75 6e 63 | 74 69 6f 6e 20 65 6e 74 |for func|tion ent|
|00005d70| 72 79 2e 0d 20 20 20 46 | 49 4c 45 20 69 73 20 61 |ry.. F|ILE is a|
|00005d80| 20 73 74 64 69 6f 20 73 | 74 72 65 61 6d 20 74 6f | stdio s|tream to|
|00005d90| 20 6f 75 74 70 75 74 20 | 74 68 65 20 63 6f 64 65 | output |the code|
|00005da0| 20 74 6f 2e 0d 20 20 20 | 53 49 5a 45 20 69 73 20 | to.. |SIZE is |
|00005db0| 61 6e 20 69 6e 74 3a 20 | 68 6f 77 20 6d 61 6e 79 |an int: |how many|
|00005dc0| 20 75 6e 69 74 73 20 6f | 66 20 74 65 6d 70 6f 72 | units o|f tempor|
|00005dd0| 61 72 79 20 73 74 6f 72 | 61 67 65 20 74 6f 20 61 |ary stor|age to a|
|00005de0| 6c 6c 6f 63 61 74 65 2e | 0d 20 20 20 52 65 66 65 |llocate.|. Refe|
|00005df0| 72 20 74 6f 20 74 68 65 | 20 61 72 72 61 79 20 60 |r to the| array `|
|00005e00| 72 65 67 73 5f 65 76 65 | 72 5f 6c 69 76 65 27 20 |regs_eve|r_live' |
|00005e10| 74 6f 20 64 65 74 65 72 | 6d 69 6e 65 20 77 68 69 |to deter|mine whi|
|00005e20| 63 68 20 72 65 67 69 73 | 74 65 72 73 0d 20 20 20 |ch regis|ters. |
|00005e30| 74 6f 20 73 61 76 65 3b | 20 60 72 65 67 73 5f 65 |to save;| `regs_e|
|00005e40| 76 65 72 5f 6c 69 76 65 | 5b 49 5d 27 20 69 73 20 |ver_live|[I]' is |
|00005e50| 6e 6f 6e 7a 65 72 6f 20 | 69 66 20 72 65 67 69 73 |nonzero |if regis|
|00005e60| 74 65 72 20 6e 75 6d 62 | 65 72 20 49 0d 20 20 20 |ter numb|er I. |
|00005e70| 69 73 20 65 76 65 72 20 | 75 73 65 64 20 69 6e 20 |is ever |used in |
|00005e80| 74 68 65 20 66 75 6e 63 | 74 69 6f 6e 2e 20 20 54 |the func|tion. T|
|00005e90| 68 69 73 20 6d 61 63 72 | 6f 20 69 73 20 72 65 73 |his macr|o is res|
|00005ea0| 70 6f 6e 73 69 62 6c 65 | 20 66 6f 72 0d 20 20 20 |ponsible| for. |
|00005eb0| 6b 6e 6f 77 69 6e 67 20 | 77 68 69 63 68 20 72 65 |knowing |which re|
|00005ec0| 67 69 73 74 65 72 73 20 | 73 68 6f 75 6c 64 20 6e |gisters |should n|
|00005ed0| 6f 74 20 62 65 20 73 61 | 76 65 64 20 65 76 65 6e |ot be sa|ved even|
|00005ee0| 20 69 66 20 75 73 65 64 | 2e 20 20 2a 2f 0d 0d 2f | if used|. */../|
|00005ef0| 2a 20 54 68 65 20 75 67 | 6c 69 6e 65 73 73 20 68 |* The ug|liness h|
|00005f00| 65 72 65 20 69 73 20 74 | 68 61 6e 6b 73 20 74 6f |ere is t|hanks to|
|00005f10| 20 74 68 65 20 4d 50 57 | 20 61 73 73 65 6d 62 6c | the MPW| assembl|
|00005f20| 65 72 2c 20 77 68 69 63 | 68 20 69 6e 73 69 73 74 |er, whic|h insist|
|00005f30| 73 0d 20 20 20 6f 6e 20 | 64 6e 2f 61 6e 20 72 65 |s. on |dn/an re|
|00005f40| 67 69 73 74 65 72 20 6d | 61 73 6b 73 2e 20 2a 2f |gister m|asks. */|
|00005f50| 0d 0d 23 64 65 66 69 6e | 65 20 46 55 4e 43 54 49 |..#defin|e FUNCTI|
|00005f60| 4f 4e 5f 50 52 4f 4c 4f | 47 55 45 28 46 49 4c 45 |ON_PROLO|GUE(FILE|
|00005f70| 2c 20 53 49 5a 45 29 20 | 20 66 75 6e 63 74 69 6f |, SIZE) | functio|
|00005f80| 6e 5f 70 72 6f 6c 6f 67 | 75 65 20 28 46 49 4c 45 |n_prolog|ue (FILE|
|00005f90| 2c 20 53 49 5a 45 29 0d | 0d 2f 2a 20 4f 75 74 70 |, SIZE).|./* Outp|
|00005fa0| 75 74 20 61 73 73 65 6d | 62 6c 65 72 20 63 6f 64 |ut assem|bler cod|
|00005fb0| 65 20 74 6f 20 46 49 4c | 45 20 74 6f 20 69 6e 63 |e to FIL|E to inc|
|00005fc0| 72 65 6d 65 6e 74 20 70 | 72 6f 66 69 6c 65 72 20 |rement p|rofiler |
|00005fd0| 6c 61 62 65 6c 20 23 20 | 4c 41 42 45 4c 4e 4f 0d |label # |LABELNO.|
|00005fe0| 20 20 20 66 6f 72 20 70 | 72 6f 66 69 6c 69 6e 67 | for p|rofiling|
|00005ff0| 20 61 20 66 75 6e 63 74 | 69 6f 6e 20 65 6e 74 72 | a funct|ion entr|
|00006000| 79 2e 20 20 2a 2f 0d 0d | 23 64 65 66 69 6e 65 20 |y. */..|#define |
|00006010| 46 55 4e 43 54 49 4f 4e | 5f 50 52 4f 46 49 4c 45 |FUNCTION|_PROFILE|
|00006020| 52 28 46 49 4c 45 2c 20 | 4c 41 42 45 4c 4e 4f 29 |R(FILE, |LABELNO)|
|00006030| 20 20 5c 0d 20 20 66 70 | 72 69 6e 74 66 20 28 46 | \. fp|rintf (F|
|00006040| 49 4c 45 2c 20 22 5c 74 | 6c 65 61 20 4c 50 25 64 |ILE, "\t|lea LP%d|
|00006050| 2c 61 30 5c 6e 5c 74 6a | 73 72 20 66 6e 23 23 63 |,a0\n\tj|sr fn##c|
|00006060| 6f 75 6e 74 5c 6e 22 2c | 20 4c 41 42 45 4c 4e 4f |ount\n",| LABELNO|
|00006070| 29 0d 0d 2f 2a 20 4f 75 | 74 70 75 74 20 61 73 73 |)../* Ou|tput ass|
|00006080| 65 6d 62 6c 65 72 20 63 | 6f 64 65 20 74 6f 20 46 |embler c|ode to F|
|00006090| 49 4c 45 20 74 6f 20 69 | 6e 69 74 69 61 6c 69 7a |ILE to i|nitializ|
|000060a0| 65 20 74 68 69 73 20 73 | 6f 75 72 63 65 20 66 69 |e this s|ource fi|
|000060b0| 6c 65 27 73 0d 20 20 20 | 62 61 73 69 63 20 62 6c |le's. |basic bl|
|000060c0| 6f 63 6b 20 70 72 6f 66 | 69 6c 69 6e 67 20 69 6e |ock prof|iling in|
|000060d0| 66 6f 2c 20 69 66 20 74 | 68 61 74 20 68 61 73 20 |fo, if t|hat has |
|000060e0| 6e 6f 74 20 61 6c 72 65 | 61 64 79 20 62 65 65 6e |not alre|ady been|
|000060f0| 20 64 6f 6e 65 2e 20 20 | 2a 2f 0d 0d 23 64 65 66 | done. |*/..#def|
|00006100| 69 6e 65 20 46 55 4e 43 | 54 49 4f 4e 5f 42 4c 4f |ine FUNC|TION_BLO|
|00006110| 43 4b 5f 50 52 4f 46 49 | 4c 45 52 28 46 49 4c 45 |CK_PROFI|LER(FILE|
|00006120| 2c 20 4c 41 42 45 4c 4e | 4f 29 20 20 5c 0d 20 20 |, LABELN|O) \. |
|00006130| 66 70 72 69 6e 74 66 20 | 28 46 49 4c 45 2c 20 22 |fprintf |(FILE, "|
|00006140| 5c 74 74 73 74 2e 6c 20 | 4c 50 42 58 30 5c 6e 5c |\ttst.l |LPBX0\n\|
|00006150| 74 62 6e 65 20 4c 50 49 | 25 64 5c 6e 22 2c 20 4c |tbne LPI|%d\n", L|
|00006160| 41 42 45 4c 4e 4f 29 3b | 20 20 5c 0d 20 20 66 70 |ABELNO);| \. fp|
|00006170| 72 69 6e 74 66 20 28 46 | 49 4c 45 2c 20 22 5c 74 |rintf (F|ILE, "\t|
|00006180| 70 65 61 20 4c 50 42 58 | 30 5c 6e 5c 74 6a 73 72 |pea LPBX|0\n\tjsr|
|00006190| 20 62 62 23 23 69 6e 69 | 74 5c 6e 5c 74 61 64 64 | bb##ini|t\n\tadd|
|000061a0| 71 2e 6c 20 23 34 2c 73 | 70 5c 6e 22 29 3b 20 20 |q.l #4,s|p\n"); |
|000061b0| 5c 0d 20 20 66 70 72 69 | 6e 74 66 20 28 46 49 4c |\. fpri|ntf (FIL|
|000061c0| 45 2c 20 22 4c 50 49 25 | 64 3a 5c 6e 22 2c 20 4c |E, "LPI%|d:\n", L|
|000061d0| 41 42 45 4c 4e 4f 29 3b | 0d 0d 2f 2a 20 4f 75 74 |ABELNO);|../* Out|
|000061e0| 70 75 74 20 61 73 73 65 | 6d 62 6c 65 72 20 63 6f |put asse|mbler co|
|000061f0| 64 65 20 74 6f 20 46 49 | 4c 45 20 74 6f 20 69 6e |de to FI|LE to in|
|00006200| 63 72 65 6d 65 6e 74 20 | 74 68 65 20 65 6e 74 72 |crement |the entr|
|00006210| 79 2d 63 6f 75 6e 74 20 | 66 6f 72 0d 20 20 20 74 |y-count |for. t|
|00006220| 68 65 20 42 4c 4f 43 4b | 4e 4f 27 74 68 20 62 61 |he BLOCK|NO'th ba|
|00006230| 73 69 63 20 62 6c 6f 63 | 6b 20 69 6e 20 74 68 69 |sic bloc|k in thi|
|00006240| 73 20 73 6f 75 72 63 65 | 20 66 69 6c 65 2e 20 20 |s source| file. |
|00006250| 2a 2f 0d 0d 23 64 65 66 | 69 6e 65 20 42 4c 4f 43 |*/..#def|ine BLOC|
|00006260| 4b 5f 50 52 4f 46 49 4c | 45 52 28 46 49 4c 45 2c |K_PROFIL|ER(FILE,|
|00006270| 20 42 4c 4f 43 4b 4e 4f | 29 09 5c 0d 20 20 66 70 | BLOCKNO|).\. fp|
|00006280| 72 69 6e 74 66 20 28 46 | 49 4c 45 2c 20 22 5c 74 |rintf (F|ILE, "\t|
|00006290| 61 64 64 71 2e 6c 20 23 | 31 2c 4c 50 42 58 32 2b |addq.l #|1,LPBX2+|
|000062a0| 25 64 5c 6e 22 2c 20 34 | 20 2a 20 42 4c 4f 43 4b |%d\n", 4| * BLOCK|
|000062b0| 4e 4f 29 0d 0d 2f 2a 20 | 45 58 49 54 5f 49 47 4e |NO)../* |EXIT_IGN|
|000062c0| 4f 52 45 5f 53 54 41 43 | 4b 20 73 68 6f 75 6c 64 |ORE_STAC|K should|
|000062d0| 20 62 65 20 6e 6f 6e 7a | 65 72 6f 20 69 66 2c 20 | be nonz|ero if, |
|000062e0| 77 68 65 6e 20 72 65 74 | 75 72 6e 69 6e 67 20 66 |when ret|urning f|
|000062f0| 72 6f 6d 20 61 20 66 75 | 6e 63 74 69 6f 6e 2c 0d |rom a fu|nction,.|
|00006300| 20 20 20 74 68 65 20 73 | 74 61 63 6b 20 70 6f 69 | the s|tack poi|
|00006310| 6e 74 65 72 20 64 6f 65 | 73 20 6e 6f 74 20 6d 61 |nter doe|s not ma|
|00006320| 74 74 65 72 2e 20 20 54 | 68 65 20 76 61 6c 75 65 |tter. T|he value|
|00006330| 20 69 73 20 74 65 73 74 | 65 64 20 6f 6e 6c 79 20 | is test|ed only |
|00006340| 69 6e 0d 20 20 20 66 75 | 6e 63 74 69 6f 6e 73 20 |in. fu|nctions |
|00006350| 74 68 61 74 20 68 61 76 | 65 20 66 72 61 6d 65 20 |that hav|e frame |
|00006360| 70 6f 69 6e 74 65 72 73 | 2e 0d 20 20 20 4e 6f 20 |pointers|.. No |
|00006370| 64 65 66 69 6e 69 74 69 | 6f 6e 20 69 73 20 65 71 |definiti|on is eq|
|00006380| 75 69 76 61 6c 65 6e 74 | 20 74 6f 20 61 6c 77 61 |uivalent| to alwa|
|00006390| 79 73 20 7a 65 72 6f 2e | 20 20 2a 2f 0d 0d 23 64 |ys zero.| */..#d|
|000063a0| 65 66 69 6e 65 20 45 58 | 49 54 5f 49 47 4e 4f 52 |efine EX|IT_IGNOR|
|000063b0| 45 5f 53 54 41 43 4b 20 | 31 0d 0d 2f 2a 20 54 68 |E_STACK |1../* Th|
|000063c0| 69 73 20 6d 61 63 72 6f | 20 67 65 6e 65 72 61 74 |is macro| generat|
|000063d0| 65 73 20 74 68 65 20 61 | 73 73 65 6d 62 6c 79 20 |es the a|ssembly |
|000063e0| 63 6f 64 65 20 66 6f 72 | 20 66 75 6e 63 74 69 6f |code for| functio|
|000063f0| 6e 20 65 78 69 74 2c 0d | 20 20 20 6f 6e 20 6d 61 |n exit,.| on ma|
+--------+-------------------------+-------------------------+--------+--------+
Only 25.0 KB of data is shown above.